From unknown Fri Jun 20 05:28:25 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#859 <859@debbugs.gnu.org> To: bug#859 <859@debbugs.gnu.org> Subject: Status: 23.0.60; nxml-indent-line modifies the buffer Reply-To: bug#859 <859@debbugs.gnu.org> Date: Fri, 20 Jun 2025 12:28:25 +0000 retitle 859 23.0.60; nxml-indent-line modifies the buffer reassign 859 emacs submitter 859 "Lennart Borgman (gmail)" severity 859 normal thanks From lennart.borgman@gmail.com Mon Sep 1 16:38:35 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-7.4 required=4.0 tests=AWL,BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 1 Sep 2008 23:38:35 +0000 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m81NcV10001862 for ; Mon, 1 Sep 2008 16:38:33 -0700 Received: from mx10.gnu.org ([199.232.76.166]:45846) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1KaIx5-0001Bn-Dw for emacs-pretest-bug@gnu.org; Mon, 01 Sep 2008 19:36:55 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1KaIya-0007wF-Mw for emacs-pretest-bug@gnu.org; Mon, 01 Sep 2008 19:38:31 -0400 Received: from ch-smtp02.sth.basefarm.net ([80.76.149.213]:42392) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KaIya-0007w1-9M for emacs-pretest-bug@gnu.org; Mon, 01 Sep 2008 19:38:28 -0400 Received: from c83-254-151-87.bredband.comhem.se ([83.254.151.87]:63131 helo=[127.0.0.1]) by ch-smtp02.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1KaIyY-00029i-7a for emacs-pretest-bug@gnu.org; Tue, 02 Sep 2008 01:38:26 +0200 Message-ID: <48BC7CED.5070405@gmail.com> Date: Tue, 02 Sep 2008 01:38:21 +0200 From: "Lennart Borgman (gmail)" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666 MIME-Version: 1.0 To: emacs-pretest-bug@gnu.org Subject: 23.0.60; nxml-indent-line modifies the buffer X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 080901-0, 2008-09-01), Outbound message X-Antivirus-Status: Clean X-Originating-IP: 83.254.151.87 X-Scan-Result: No virus found in message 1KaIyY-00029i-7a. X-Scan-Signature: ch-smtp02.sth.basefarm.net 1KaIyY-00029i-7a 7a6c5c7d6bc1e77be278653e8245c727 X-detected-kernel: by monty-python.gnu.org: Linux 2.6? (barebone, rare!) nxml-indent-line modifies the buffer even if the current indentation is the same as the one it will give. I am not sure what the right fix for this is. It uses indent-to and perhaps the best would be that indent-to did not modify the buffer. Otherwise the only change needed in nxml-indent-line is to add a check: (defun nxml-indent-line () "Indent current line as XML." (let ((indent (nxml-compute-indent)) (from-end (- (point-max) (point)))) (when (and indent (/= indent (current-indentation))) (beginning-of-line) (let ((bol (point))) (skip-chars-forward " \t") (delete-region bol (point))) (indent-to indent) (when (> (- (point-max) from-end) (point)) (goto-char (- (point-max) from-end)))))) In GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600) of 2008-08-29 Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (3.4) --no-opt --cflags -Ic:/g/include -fno-crossjumping' From rgm@gnu.org Mon Dec 1 19:43:17 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-10.4 required=4.0 tests=AWL,BAYES_00,GMAIL, RCVD_IN_DNSWL_MED,X_DEBBUGS_NO_ACK autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 859-done) by emacsbugs.donarmstrong.com; 2 Dec 2008 03:43:17 +0000 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mB23hEfo026066 for <859-done@emacsbugs.donarmstrong.com>; Mon, 1 Dec 2008 19:43:16 -0800 Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1L7M9x-0000FX-DY for 859-done@emacsbugs.donarmstrong.com; Mon, 01 Dec 2008 22:42:49 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18740.44729.370117.362913@fencepost.gnu.org> Date: Mon, 1 Dec 2008 22:42:49 -0500 From: Glenn Morris To: 859-done@debbugs.gnu.org Subject: Re: 23.0.60; nxml-indent-line modifies the buffer In-Reply-To: <48BC7CED.5070405@gmail.com> References: <48BC7CED.5070405@gmail.com> X-Debbugs-No-Ack: yes 2008-12-02 Lennart Borgman * nxml/nxml-mode.el (nxml-indent-line): Don't re-indent lines that already have the correct indentation. (Bug#859) From unknown Fri Jun 20 05:28:25 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: $requester Subject: Internal Control Message-Id: bug archived. Date: Tue, 30 Dec 2008 15:24:03 +0000 User-Agent: Fakemail v42.6.9 # A New Hope # A log time ago, in a galaxy far, far away # something happened. # # Magically this resulted in the following # action being taken, but this fake control # message doesn't tell you why it happened # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator