GNU bug report logs - #13174
24.1; comment-region incorrectly handling XML comments already present

Previous Next

Package: emacs;

Reported by: Louis-Dominique Dubeau <ldd <at> lddubeau.com>

Date: Thu, 13 Dec 2012 16:58:04 UTC

Severity: normal

Found in version 24.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Louis-Dominique Dubeau <ldd <at> lddubeau.com>
Cc: 13174 <at> debbugs.gnu.org
Subject: Re: bug#13174: 24.1; comment-region incorrectly handling XML
 comments already present
Date: Fri, 16 Aug 2019 00:23:42 -0700
Louis-Dominique Dubeau <ldd <at> lddubeau.com> writes:

> 1. Execute:
>
> $ emacs -Q
>
> 2. M-x nxml-mode.
>
> 3. Emtpy the buffer.
>
> 4. Enter the following text:
>
> <!-- Blah -->
>
> 5. Select that text and issue M-x comment-region.
>
> The text becomes: 
>
> <!-- <\!-- Blah -\-> -->
>
> which is invalid XML. Josse van der Plaat has a solution at:
>
> http://emacswiki.org/emacs/mz-comment-fix.el
>
> Using his solution yields:
>
> <!-- <!-\- Blah -\-> -->
>
> which is is valid XML.

(I'm going through old bug reports that have unfortunately gotten no
responses yet.)

I tried your recipe in Emacs 27, and I got:

<!-- <!-\- Blah -\-> -->

So I'm going to go ahead and guess that this bug has been fixed at some
point in the years since the report was filed, and I'm closing this bug
report.  If you're still seeing this, please reopen.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 5 years and 282 days ago.

Previous Next


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