Re: Edit xml files with Emacs for Docbook

"[email protected] [emacs-nxml-mode]" <[email protected]> Fri, 08 Apr 2016 11:22:17 +0100
Newsgroups gmane.emacs.nxml.general
Message-ID <[email protected]>
On 2016-04-08 07:15, Dave Pawson [email protected] [emacs-nxml-mode] 
wrote:
> Can you explain why you need both please Peter?
> 
>> M-x sgml-mode RET M-x xml-mode RET

Because nxml-mode has taken over control, M-x xml-mode RET simply 
invokes nxml-mode again.
Using M-x sgml-mode RET presumably invokes the ancient sgml-mode, which 
somehow manages to re-route things so that a subsequent call to xml-mode 
invokes PSGML, which is what I want.

nxml-mode does lots of good things, but letting you edit XML documents 
the way $deity intended is not one of them :-)

One day I'll learn enough elisp to work out how to disable nxml-mode. I 
don't use W3C schemas enough to warrant keeping it, and it doesn't offer 
anywhere near as good an edit interface as psgml. Plus I want to update 
psgml to fix a few things that have managed to get broken, especially 
the old facility whereby you could specify elements (eg 
<programlisting>) that would NOT get pretty-indented or wrapped when you 
issue a C-c C-q. And add a "join-element" command (to preceding-sibling 
or following-sibling of the same type) and a "merge-element" command to 
do the same to an element of a different type. And a way to pop up all 
the xml:ids when you insert an xref or biblioref or link or something 
requiring a @linkend value. Etc etc :-)

Or win the lottery and hire a good elisp programmer...

///Peter


------------------------------------
Posted by: [email protected]
------------------------------------