Re: Specifying outlining scheme

"RonB" <[email protected]> Sat, 13 Oct 2012 21:48:26 -0000
Newsgroups gmane.emacs.nxml.general
Message-ID <[email protected]>
How terrifically unclear I must have been for you to imagine that "read the documentation" could be a helpful response! :-) Let me try to do a better job than my initial poor attempt:

Manually changing "nxml-section-element-name-regexp" every time I open a new XML file that has a different associated schema (to be excruciatingly explicit: I've read the documentation, schemas are being loaded just fine, and are beside the point of the question) is an error-prone waste of my time. My question was whether there's some trick to avoiding this that I haven't grokked and, assuming not (given I've of course read the documentation and far too many web ramblings as well, along with goodly chunks of the code), whether anyone has a patch that would produce the fairly obvious solution of letting people store (what is, after all, meta-schema information that doesn't logically belong in an editor variable) this directive inside their .rnc schema file as an annotation?

Perhaps nxml-mode users are very homogenous and pretty much all work on just DocBook (the default regexp appears to be DocBook-centric) and so this just isn't an issue for most people, I dunno. Clearly, it's not a design anybody who works on a wide variety of schemas would find tolerable, unless there's a trick I've missed.

Barring any nice workaround laying about, I wonder if anyone on the list has enough experience with the code to give me a code review if I get ambitious enough to write my own patch?






------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/emacs-nxml-mode/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/emacs-nxml-mode/join
    (Yahoo! ID required)

<*> To change settings via email:
    [email protected] 
    [email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/