From unknown Fri Jun 13 10:10:03 2025 X-Loop: help-debbugs@gnu.org Subject: bug#16820: 24.3; nxml comment block indentation issue Resent-From: Nate Eagleson Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 20 Feb 2014 07:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 16820 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 16820@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.13928810764936 (code B ref -1); Thu, 20 Feb 2014 07:25:01 +0000 Received: (at submit) by debbugs.gnu.org; 20 Feb 2014 07:24:36 +0000 Received: from localhost ([127.0.0.1]:32975 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WGNzm-0001HX-Eo for submit@debbugs.gnu.org; Thu, 20 Feb 2014 02:24:35 -0500 Received: from eggs.gnu.org ([208.118.235.92]:36576) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WGLV8-00056S-V8 for submit@debbugs.gnu.org; Wed, 19 Feb 2014 23:44:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WGLUz-0006GA-6s for submit@debbugs.gnu.org; Wed, 19 Feb 2014 23:44:41 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:36429) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WGLUz-0006G6-3R for submit@debbugs.gnu.org; Wed, 19 Feb 2014 23:44:37 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38288) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WGLUu-0001Pt-Qi for bug-gnu-emacs@gnu.org; Wed, 19 Feb 2014 23:44:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WGLUq-0006B9-HA for bug-gnu-emacs@gnu.org; Wed, 19 Feb 2014 23:44:32 -0500 Received: from mail-qa0-x236.google.com ([2607:f8b0:400d:c00::236]:36198) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WGLUq-00069Y-9Z for bug-gnu-emacs@gnu.org; Wed, 19 Feb 2014 23:44:28 -0500 Received: by mail-qa0-f54.google.com with SMTP id i13so2291801qae.13 for ; Wed, 19 Feb 2014 20:44:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:content-type:subject:date:message-id:to:mime-version; bh=pWObD0I+cRw0IYEcGd0oEMpT4Wuno9GA1UFH/d+b5CU=; b=yMkt+vn9ovDPf8MUWy2y3FbEtjxrhAtPxoNwVzR3hJT+PwUYHimh/U61ozpqfH6eyP fwdQA7bD4wGSy2eMXUtZvqe0D/Hhhzhl7Dy7TvjhS67yi72giUu0YlYmKo9YY1CIDV6o 05ozc42NbkZOaAAf/qio5bnEXmjNgCvcz7H4VbnMoMqA7ny9FuTC3Ygnhr2ybX+lLmtn W+xpV3rSMByx7x3KVjMX+JqxdUk0pJSTRxF3VRSsrP0Qmx7W8RXRmFzrTuW5yDML5Kkv ppIDWow8gWNigNKHmKDMq3TiNsJc8FezGzc2lbY3IMySmfu4/Mem7TZsxolJ0eRKnelx J11w== X-Received: by 10.140.42.54 with SMTP id b51mr6423883qga.87.1392871467289; Wed, 19 Feb 2014 20:44:27 -0800 (PST) Received: from [192.168.2.4] (c-50-152-70-14.hsd1.pa.comcast.net. [50.152.70.14]) by mx.google.com with ESMTPSA id m14sm8407975qax.9.2014.02.19.20.44.25 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 19 Feb 2014 20:44:26 -0800 (PST) From: Nate Eagleson Content-Type: multipart/alternative; boundary=Apple-Mail-2-99921010 Date: Wed, 19 Feb 2014 23:44:24 -0500 Message-Id: <3518A4CF-32D9-4C35-8D13-DF77C770FAFD@nateeag.com> Mime-Version: 1.0 (Apple Message framework v1085) X-Mailer: Apple Mail (2.1085) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Mailman-Approved-At: Thu, 20 Feb 2014 02:24:33 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) --Apple-Mail-2-99921010 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii This bug report will be sent to the Bug-GNU-Emacs mailing list and the GNU bug tracker at debbugs.gnu.org. Please check that the From: line contains a valid email address. After a delay of up to one day, you should receive an acknowledgment at that address. Please write in English if possible, as the Emacs maintainers usually do not have translators for other languages. Please describe exactly what actions triggered the bug, and the precise symptoms of the bug. If you can, give a recipe starting from `emacs -Q': nxml-mode indents multiple lines in a comment block to match the preceding line's indentation, even for blank lines. It should ignore blank lines when determining indent level. I couldn't find any mention of this bug in the mailing list archives, which I searched with Google's site: feature, but I may have missed something. To reproduce: Start emacs with -Q. Create a new buffer. Start XML mode: M-x xml-mode Enter the following text: Put the cursor before '-->' and press Tab. It will indent to the same level as ' > > > Put the cursor before '-->' and press Tab. It will indent to the same > level as ' >> >> >> Put the cursor before '-->' and press Tab. It will indent to the same >> level as ' This is all from distant memory, so apologies if I'm describing it incorrectly. -Nate On Thu, Oct 1, 2020 at 8:12 AM Stefan Kangas wrote: > tags 16820 + wontfix notabug > close 16820 > thanks > > Stefan Kangas writes: > > > Nate Eagleson writes: > > > >> nxml-mode indents multiple lines in a comment block to match the > >> preceding line's indentation, even for blank lines. It should ignore > >> blank lines when determining indent level. > > [...] > >> > >> To reproduce: > >> > >> Start emacs with -Q. > >> > >> Create a new buffer. > >> > >> Start XML mode: M-x xml-mode > >> > >> Enter the following text: > >> > >> > >> > >> > >> > >> Put the cursor before '-->' and press Tab. It will indent to the same > >> level as ' > > This is all from distant memory, so apologies if I'm describing it > incorrectly. Oh, right. Yes, that indeed does seem like a bug. Reopening. Thanks for writing back. From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 20 12:14:00 2020 Received: (at control) by debbugs.gnu.org; 20 Oct 2020 16:14:00 +0000 Received: from localhost ([127.0.0.1]:46486 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kUuGu-0003sk-Iw for submit@debbugs.gnu.org; Tue, 20 Oct 2020 12:14:00 -0400 Received: from mail-ej1-f48.google.com ([209.85.218.48]:46235) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kUuGs-0003sV-Fe for control@debbugs.gnu.org; Tue, 20 Oct 2020 12:13:59 -0400 Received: by mail-ej1-f48.google.com with SMTP id t25so3544372ejd.13 for ; Tue, 20 Oct 2020 09:13:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:date:message-id:subject:to; bh=w2E5445ab/VUjSStvDFJ4BigNdCtaOspqrerkbl1G/g=; b=oH6pSDYifK/FYrpTe5VCw7lHvEe8YHga1rQERYyDAyrkL1jdYLiWREw5HmgvifQa9v yomcuaV8YxGSRJ65XGG6vSAlALKTirz0SuXY1+wDRZQLhQoz3vbCWbvQTkcrN2zC9257 M/NX+ujfakFj25SpsI5cU4cUO6qfD0RfWvr6QBVNeMGo4n84QmVxOkhfufIOjF00zu8s zlci+Kgzcw23QN1oMhuxuhA8Tt9eMQRu2pRzRU0HH8S7w+pO71sAAY5BlEItC+ZDrlqe ns4ycnw/o5HYDRbqcmfnF1UVoq/odjuV9vkXp77iusy24Zu0sZ/hHjELCZI/UlDyudOe R1hw== X-Gm-Message-State: AOAM5318HokpAKCXByk3fN8z+1h9MrZJ1ImX3qWlSJuxHKHhjqRiIJfN Ayo3ZCCIn0mpF9igqssaQhJHtttoqNJm5SYm3tMOduYJ X-Google-Smtp-Source: ABdhPJznX5kPu9mjT1FZFztooWsyR+ZntdYwaSBSIk6/hX66dNx0Az44WanJIxxPceFLo5bBhZ9+KzBUulKQljpxKdg= X-Received: by 2002:a17:906:bc91:: with SMTP id lv17mr4059214ejb.249.1603210432473; Tue, 20 Oct 2020 09:13:52 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Tue, 20 Oct 2020 16:13:51 +0000 From: Stefan Kangas MIME-Version: 1.0 Date: Tue, 20 Oct 2020 16:13:51 +0000 Message-ID: Subject: To: control@debbugs.gnu.org Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 2.5 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: tags 16820 - notabug wontfix thanks Content analysis details: (2.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (stefankangas[at]gmail.com) 0.2 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.218.48 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.218.48 listed in wl.mailspike.net] 2.0 BLANK_SUBJECT Subject is present but empty 0.2 FREEMAIL_FORGED_FROMDOMAIN 2nd level domains in From and EnvelopeFrom freemail headers are different 0.0 UNPARSEABLE_RELAY Informational: message has unparseable relay lines X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.5 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: tags 16820 - notabug wontfix thanks Content analysis details: (1.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.218.48 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.218.48 listed in wl.mailspike.net] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (stefankangas[at]gmail.com) 0.2 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different 2.0 BLANK_SUBJECT Subject is present but empty -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager 0.2 FREEMAIL_FORGED_FROMDOMAIN 2nd level domains in From and EnvelopeFrom freemail headers are different 0.0 UNPARSEABLE_RELAY Informational: message has unparseable relay lines tags 16820 - notabug wontfix thanks From unknown Fri Jun 13 10:10:03 2025 X-Loop: help-debbugs@gnu.org Subject: bug#16820: 24.3; nxml comment block indentation issue Resent-From: Nathan Eagleson Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 23 Oct 2020 02:44:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16820 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed To: Stefan Kangas Cc: 16820@debbugs.gnu.org Received: via spool by 16820-submit@debbugs.gnu.org id=B16820.160342101421989 (code B ref 16820); Fri, 23 Oct 2020 02:44:01 +0000 Received: (at 16820) by debbugs.gnu.org; 23 Oct 2020 02:43:34 +0000 Received: from localhost ([127.0.0.1]:54384 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kVn3G-0005ia-G8 for submit@debbugs.gnu.org; Thu, 22 Oct 2020 22:43:34 -0400 Received: from mail-ot1-f46.google.com ([209.85.210.46]:35959) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kVn3E-0005iN-HB for 16820@debbugs.gnu.org; Thu, 22 Oct 2020 22:43:33 -0400 Received: by mail-ot1-f46.google.com with SMTP id 32so59502otm.3 for <16820@debbugs.gnu.org>; Thu, 22 Oct 2020 19:43:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=OGWnFByyJENi7nWKyyzMONf2mtM5IY48Wr3IySNnR3k=; b=c5IzYBUirErZreguvS2EK/6E85msVN0M2dmy1S7XE1aQxeEOmomZAMS7V9GQ4OqcEZ iMEhNlno+Mari/NMijyHuz93Yx6llUJI15yzB7PABvSy56zZyh4JSFDFIQLH5wgc2e+B 4CqX6Q4J1QlUu3SroluHf62IVSULkVUFbKZ4+LuKmVY5ltpG9WFnCiDsN+Lelm7nS30Q F4tvUSwrWyqkfb98B49ndz5gKVdkP5TJf3axLxI6dy1091VRq7/kxKr5wqBH9srsDN0o lDzqQfmap2hnnpp8gqIQPBNAbwTANI1dOjqD4yZIhDm35361hR8u6y6O+dKJCIp+8pRS m3og== X-Gm-Message-State: AOAM530OB5ZD6CM4luag8JmKnVavt0eEsZHqWwec4r0rgetCZk0Sp97F iA2SE5qMeC6FP0TomXkOr7hcwgex5NaGsJHqPBTRrdhn X-Google-Smtp-Source: ABdhPJw/BG90cXbSifiFBp0hkZ/WoJ8i8IWsJCyGni4lBOhaX+mZfy3A5wiqcICowvLXaS19HWtXk8wDa849aIcZXmM= X-Received: by 2002:a05:6830:134c:: with SMTP id r12mr61031otq.240.1603421006835; Thu, 22 Oct 2020 19:43:26 -0700 (PDT) MIME-Version: 1.0 References: <3518A4CF-32D9-4C35-8D13-DF77C770FAFD@nateeag.com> In-Reply-To: From: Nathan Eagleson Date: Thu, 22 Oct 2020 22:43:16 -0400 Message-ID: Content-Type: multipart/alternative; boundary="00000000000089b69005b24d8bdf" X-Spam-Score: 0.5 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) --00000000000089b69005b24d8bdf Content-Type: text/plain; charset="UTF-8" Sure thing. I'm sorry for completely missing your first request for info. On Tue, Oct 20, 2020 at 12:03 PM Stefan Kangas wrote: > reopen 16820 > tags 16820 confirmed > thanks > > Nathan Eagleson writes: > > > Sorry, I missed your original request. > > > > This seems like a bug to me because multi-paragraph comment bodies are > > usually indented to align with the comment start token. > > > > If you strip trailing whitespace on save, this behavior results in bad > > comment indentation, something like: > > > > > > > > This is all from distant memory, so apologies if I'm describing it > > incorrectly. > > Oh, right. Yes, that indeed does seem like a bug. Reopening. > > Thanks for writing back. > --00000000000089b69005b24d8bdf Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Sure thing. I'm sorry for completely missing your firs= t request for info.

On Tue, Oct 20, 2020 at 12:03 PM Stefan Kangas <stefan@marxist.se> wrote:
<= blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-l= eft:1px solid rgb(204,204,204);padding-left:1ex">reopen 16820
tags 16820 confirmed
thanks

Nathan Eagleson <n= ate@nateeag.com> writes:

> Sorry, I missed your original request.
>
> This seems like a bug to me because multi-paragraph comment bodies are=
> usually indented to align with the comment start token.
>
> If you strip trailing whitespace on save, this behavior results in bad=
> comment indentation, something like:
>
>=C2=A0 =C2=A0 =C2=A0<!-- First line of comment is here. It may go on= for
>=C2=A0 =C2=A0 =C2=A0several lines in a format something like you'd = expect.
>
> After the blank line, the comment is outdented relative to the
> comment start/end markers.
>
>=C2=A0 =C2=A0 =C2=A0-->
>
> This is all from distant memory, so apologies if I'm describing it=
> incorrectly.

Oh, right.=C2=A0 Yes, that indeed does seem like a bug.=C2=A0 Reopening.
Thanks for writing back.
--00000000000089b69005b24d8bdf--