|
|
Choosing A Webhost: |
RE: nxml-mode 20041004: msg#00019emacs.nxml.general
> -----Original Message----- > From: James Clark [mailto:jjc@xxxxxxxxxxxxxxxxxxxx] > Sent: 04 October 2004 07:38 > > > > > The main change in this release is support for outlining. > This is a bit > fancier than the folding support that I had originally envisaged. The > basic idea is to provide similar functionality to outline > mode in an XML > context. > > The downside is that it can't work completely heuristically. > You need to > ensure that the local names of your section and heading elements are > matched by nxml-section-element-name-regexp and > nxml-heading-element-name-regexp respectively. You can use > customize-variable to modify these. If there are common names for > section and heading elements that aren't yet matched, let me know, so > that I can add them to the regexp. In the longer term, I think nXML > mode needs some general way to associate editing behavior (beyond what > can be inferred from a schema) with document types, but I haven't > figured out yet how this should work. > Seems to work for me. I use docbook with sectN elements, so I had to add sect[1-9] to the nxml-section-element-name-regexp. Maybe you should add something similar to the default regexp. > Once you've set things up, the usual outline mode commands work except > with a prefix of C-c C-o instead of C-c. There are more details in the > manual. If you don't want to read the FM and don't know outline mode, > then try "Show Outline Only" from the menu, and use the > mouse. You can > also use RET to expand things. > Would it be possible to add more keys when on an outline line, like + and - to expand/colapse things? I don't know exactly what's allowed by the Emacs conventions, but easier to type keys would be handy. Nice to have some section/heading things that we can share with the speedbar code. Thanks, //Peter ------------------------ Yahoo! Groups Sponsor --------------------~--> $9.95 domain names from Yahoo!. Register anything. http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/2U_rlB/TM --------------------------------------------------------------------~-> Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/emacs-nxml-mode/ <*> To unsubscribe from this group, send an email to: emacs-nxml-mode-unsubscribe@xxxxxxxxxxxxxxx <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | RE: RE: Very experimental speedbar support, Pawson, David |
|---|---|
| Next by Date: | RE: RE: Very experimental speedbar support, peter.lundblad |
| Previous by Thread: | Re: nxml-mode 20041004, Peter Heslin |
| Next by Thread: | RE: nxml-mode 20041004, James Clark |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |