all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Exclude literal layout XML nodes from autoindentation
@ 2009-08-16 16:39 Sam Varshavchik
  0 siblings, 0 replies; only message in thread
From: Sam Varshavchik @ 2009-08-16 16:39 UTC (permalink / raw)
  To: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 1207 bytes --]

I'm trying to figure out how to get emacs's autoindent, both Tab and 
indent-region, to work in the manner that I like, when editing XML 
documents, and specifically Docbook documents.

I'd like to be able to easily autoindent my document, except for a couple of 
XML nodes whose whitespace content is significant, like <literallayout> or 
<programlisting>. In simple XML major mode, when I re-indent a large reason, 
I then have to go back and undo all the indention added in all the 
<programlisting> nodes.

After some Googling, I tried nxml. After assigning the "Docbook" ID, 
according to nxml's docs (although it's not quite clear to me how nxml deals 
with different tags used by different versions of Docbook), I find that 
nxml-mode still autoindents XML nodes that have significant whitespace.

I also tried psgml, but it looks like psgml is having problems parsing 
Docbook DTDs. Found a bunch of ancient mailing list messages to that effect, 
and it looks like that this is still the case. The current released version 
of psgml, which is in Fedora, is 1.2.5, and it dated 2002. I built the 
"Alpha" releases of psgml, 1.3.1 and 1.3.2, and tried those -- they still 
can't parse Docbook DTDs.



[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-08-16 16:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-16 16:39 Exclude literal layout XML nodes from autoindentation Sam Varshavchik

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.