GNU bug report logs - #20001
Wrong commenting of comments in nXML mode

Previous Next

Package: emacs;

Reported by: Paul Pogonyshev <pogonyshev <at> gmail.com>

Date: Wed, 4 Mar 2015 14:57:01 UTC

Severity: normal

Fixed in version 25.1

Done: Ivan Andrus <darthandrus <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Paul Pogonyshev <pogonyshev <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: Wrong commenting of comments in nXML mode
Date: Wed, 4 Mar 2015 15:55:48 +0100
[Message part 1 (text/plain, inline)]
$ emacs -q

Create an XML buffer with the following:

<foo>
  <!-- comment -->
</foo>

Now C-x h M-; to comment out everything. Text becomes this:

<!-- <foo> -->
<!--   <\!-- comment -\-> -->
<!-- </foo> -->

which is not valid XML. This is even suggested by the mode itself. "<\!--"
should be "<!-\-" instead. Uncommenting should also take that into account.

Version: GNU Emacs 25.0.50.1 (x86_64-unknown-linux-gnu, GTK+ Version
3.10.9) of 2015-03-03

Paul
[Message part 2 (text/html, inline)]

This bug report was last modified 9 years and 302 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.