From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#13174: 24.1; comment-region incorrectly handling XML comments already present Date: Fri, 16 Aug 2019 00:23:42 -0700 Message-ID: <87y2ztpo8x.fsf@mouse.gnus.org> References: <1355410815.4117.338.camel@karma> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="187287"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: 13174@debbugs.gnu.org To: Louis-Dominique Dubeau Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Aug 16 09:24:11 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hyWap-000ma9-Nf for geb-bug-gnu-emacs@m.gmane.org; Fri, 16 Aug 2019 09:24:11 +0200 Original-Received: from localhost ([::1]:49992 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hyWao-0008EU-FR for geb-bug-gnu-emacs@m.gmane.org; Fri, 16 Aug 2019 03:24:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36603) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hyWah-0008EL-Qn for bug-gnu-emacs@gnu.org; Fri, 16 Aug 2019 03:24:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hyWag-0005O9-Lu for bug-gnu-emacs@gnu.org; Fri, 16 Aug 2019 03:24:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44184) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hyWag-0005O5-IK for bug-gnu-emacs@gnu.org; Fri, 16 Aug 2019 03:24:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hyWag-0000xu-Dw for bug-gnu-emacs@gnu.org; Fri, 16 Aug 2019 03:24:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 16 Aug 2019 07:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13174 X-GNU-PR-Package: emacs Original-Received: via spool by 13174-submit@debbugs.gnu.org id=B13174.15659402313687 (code B ref 13174); Fri, 16 Aug 2019 07:24:02 +0000 Original-Received: (at 13174) by debbugs.gnu.org; 16 Aug 2019 07:23:51 +0000 Original-Received: from localhost ([127.0.0.1]:53004 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hyWaV-0000xP-F6 for submit@debbugs.gnu.org; Fri, 16 Aug 2019 03:23:51 -0400 Original-Received: from quimby.gnus.org ([80.91.231.51]:55548) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hyWaT-0000xF-CN for 13174@debbugs.gnu.org; Fri, 16 Aug 2019 03:23:49 -0400 Original-Received: from [50.225.213.182] (helo=sandy) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hyWaP-0003Nh-Ni; Fri, 16 Aug 2019 09:23:48 +0200 In-Reply-To: <1355410815.4117.338.camel@karma> (Louis-Dominique Dubeau's message of "Thu, 13 Dec 2012 10:00:15 -0500") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:165190 Archived-At: Louis-Dominique Dubeau writes: > 1. Execute: > > $ emacs -Q > > 2. M-x nxml-mode. > > 3. Emtpy the buffer. > > 4. Enter the following text: > > > > 5. Select that text and issue M-x comment-region. > > The text becomes: > > > > which is invalid XML. Josse van der Plaat has a solution at: > > http://emacswiki.org/emacs/mz-comment-fix.el > > Using his solution yields: > > > > 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: 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