-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Major-mode tcl-mode submode nxml-mode: xml indentation broken #79
Comments
I don't think |
Am 12/16/2017 01:57 AM, Dmitry Gutov wrote:
I don't think `nxml-mode` is able to support this usage yet. You can try `xml-mode`, though.
I don't think this will be of much help.
emacs -Q
C-h f xml-mode
xml-mode is an alias for ‘nxml-mode’ in ‘nxml-mode.el’.
(xml-mode)
Major mode for editing XML.
May I ask what in nxml-mode is it that hinders it to be used as
submode?
|
Like I said in the edit, try
The full parser, probably. Haven't tried your experiment myself, though. |
Yes, sgml-mode could be used for indentation of embedded xml. nxml , though, is awful. Well, a working mmm mode is also. Thanks for exploring. |
Create a buffer with the content
and put it in tcl-mode. This lines are a syntactical correct (and by
no mean obscure) Tcl command.
Mark the region starting (including) at
<doc>
and ending (including)</doc>
. C-c % C-r, nxml-mode. Region is still active for me, if notfor you mark the same region and indent (TAB). I get
I'd expect:
This is with 25.2.1 and mmm-mode version 0.5.4 (without any own
mmm-customization, just installed with package.el and tried.
It is just a stripped down example. As far as I see for the
combination major-mode tcl-mode submode nxml-mode indentation in nxml
submode regions don't work. In the tcl-mode regions indentation works
as expected.
The text was updated successfully, but these errors were encountered: