[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: xml indenting again (sgml-mode broken???)

From: Stefan Monnier
Subject: Re: xml indenting again (sgml-mode broken???)
Date: 04 Jun 2003 15:42:11 -0400
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

> <tagxy>
>      <!--
>           </sometag>
> --> 
> </tagxy>

> I get the error "unmatched tags <tagxy> and </sometag>. So it seems the mode
> doesn't recognise the comments.

Could you please be more precise ?  E.g. when do you get this error ?
I can guess it's when you hit TAB, but where do you hit it ?
Does it work when you hit TAB on the last line (the one with </tagxy>) ?
Does the error lead to a bad behavior, if so which one ?
After all, just complaining about an unmatched tag is not a problem:
you can always ignore the message if you know it's groundless.
Or is it just that the message annoys you ?

[..time passes..]

I think I see what you're talking about.  If I hit TAB on the -->
line I also get the message (and it wrongly indents to column 0).
I'll see what I can do about it.  It should be able to notice the
<!-- when working its way backwards and infer that it was inside a

> I hope it even is sgml-mode? It says (XML) in the Mode Bar (or what it's
> called), and is also the mode I am in after typing 'M-x sgml-mode'.

Sounds like we're talking about the same mode: it tries to automatically
detect whether you're using XML or SGML.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]