Re: Re: Disabling nxml-mode
Peter Flynn <[email protected]>
| Newsgroups | gmane.emacs.nxml.general |
|---|---|
| Organization | Silmaril Consultants |
| Message-ID | <[email protected]> |
On 08/05/11 19:10, Steinar Bang wrote: >>>>>> Peter Flynn<[email protected]>: > >> I don't know, except that I have seen comments that GNU made nxml the >> default in recent releases of Emacs, so It's unlikely to be James's >> fault; more likely the GNU people assumed nxml provided the same >> facilities as psgml, > > They probably made an assumption, but I'm guessing that the assumption > was that psgml is no longer actively maintained. > > Of course, neither is nxml-mode, unless someone (Lennart Borgman?) has > picked up the maintenance in the version of nxml-mode that is now in the > emacs source? > >> which of course it doesn't, not by a very long way (yet, I hope). > > Out of curiosity: what features in psgml are you missing from nxml mode? DTD parsing (I'm sure nxml has this, I just haven't seen it at work). C-c C-e element insertion with TAB completion according to the DTD; the population of such inserted elements which have required element content, and the prompting for required attributes. C-c C-r tag-region, C-c - remove-tag, and C-c = change-tag; C-c C-k cut-element; in fact almost all the markup-management commands, point movement commands, and fold/unfold. The highlighting and indentation (I also use xxml-mode); I have no doubt nxml-mode can do something similar, as the highlighting is just Emacs fontification, and the indentation is a fairly standard requirement. C-c C-q Rewrapping elements: psgml correctly rewraps and indents start-tags in element content to reveal the hierarchy (although it won't add newlines if you have got a start-tag following and end-tag on the same line *in element content*, which is a pity; and it rewraps mixed content to indent under the start-tag of the closest ancestor which is in element content (that is also influenced by xxml-mode). C-c C-a The attribute management panel (split screen) C-c C-w Location-ladder identity SGML conformance (I still have half a dozen clients using SGML). As I said, I'm sure nxml-mode provides some, if not many or even all, of these, but I can't yet find any comprehensive documentation, user conversion guide, or examples of usage. It seems to be aimed at the data-xml user, not the document-xml user: I actually write whole text documents in XML, and I must have a comprehensive set of facilities for doing so (refer to the table of features in my paper at Balisage in 2006). I may simply have missed something in nxml-mode, though... ///Peter ------------------------------------ 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/