From: Sam Varshavchik <mrsam@courier-mta.com>
To: help-gnu-emacs@gnu.org
Subject: Exclude literal layout XML nodes from autoindentation
Date: Sun, 16 Aug 2009 12:39:45 -0400 [thread overview]
Message-ID: <cone.1250440785.727112.17954.500@commodore.email-scan.com> (raw)
[-- 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 --]
reply other threads:[~2009-08-16 16:39 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cone.1250440785.727112.17954.500@commodore.email-scan.com \
--to=mrsam@courier-mta.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.