GNU bug report logs - #7937
nxml-mode.el indenting wrong when more than one <> on a line

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: minor; Reported by: jidanni@HIDDEN; Keywords: confirmed patch; dated Sat, 29 Jan 2011 22:00:03 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Added tag(s) patch. Request was from Stefan Kangas <stefankangas@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 7937 <at> debbugs.gnu.org:


Received: (at 7937) by debbugs.gnu.org; 30 Mar 2023 06:56:36 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Mar 30 02:56:36 2023
Received: from localhost ([127.0.0.1]:55602 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1phmD6-0005o6-AX
	for submit <at> debbugs.gnu.org; Thu, 30 Mar 2023 02:56:36 -0400
Received: from eggs.gnu.org ([209.51.188.92]:56796)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1phmD3-0005nq-0A
 for 7937 <at> debbugs.gnu.org; Thu, 30 Mar 2023 02:56:33 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1phmCx-0000tM-Gj; Thu, 30 Mar 2023 02:56:27 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=+any+D/41w3U8SdZs97fyEEzG1RYCk9KDfKgssyT+8k=; b=mPjxhoDZjPMr
 9H0il7P92rLTz8rWiQdikMNBqV7bHP+Fv2NgbbT1kE9dcNF0GH2s4QzR/0JSPQjlW2VcW7t/fn2Or
 TYQluGL0dapsLx7MiUJRSDzaVE957yEmN3FsX7kjGisBKim3WjzUQf72JEzv023tNAgINn2wcxQlV
 hHuvMbpXVVfLCC1cyU/odYIye9DnbYHV/1138MjqnCcVw3V9aoiOknP7SCmdw5XXB2IT2zUy9WeoV
 D/LmUjj9CGRWiQ1pQ7QI19IZhbS6zt9aAomrBJMn9G8wsaHG2BKdcgDu+9k4OewojndQZ5yMAo8Up
 KmYCv4/5ymKu/GkAPZ4r/A==;
Received: from [87.69.77.57] (helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1phmCw-0004ab-Ii; Thu, 30 Mar 2023 02:56:26 -0400
Date: Thu, 30 Mar 2023 09:56:36 +0300
Message-Id: <83o7oa682j.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Stephen Meister <pallagun@HIDDEN>
In-Reply-To: <CAMrh0GMapEMPaeR=y=qYu8MHXpA5DhsSejcWXLMeWB4e_f26CA@HIDDEN>
 (message from Stephen Meister on Tue, 28 Mar 2023 15:05:05 -0400)
Subject: Re: bug#7937: nxml-mode indenting bug fix.
References: <87tygr9ych.fsf@HIDDEN>
 <CAMrh0GMapEMPaeR=y=qYu8MHXpA5DhsSejcWXLMeWB4e_f26CA@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 7937
Cc: 7937 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Stephen Meister <pallagun@HIDDEN>
> Date: Tue, 28 Mar 2023 15:05:05 -0400
> 
>   I've tried to put a fix in place for bug 7937 (and possibly 7768 unintentionally).  The repair I've made will
> cause changes in the way that nxml indents lines under normal circumstances.  I'm not sure if a change like
> this is acceptable given that I'm only trying to fix a bug.  The behavior change is most visible in a situation
> such as:
> 
> <root>
>   <a><b><c>
>     inner
>   </c>
> </b>
>   </a>
> </root>
> 
> Which would now be indented as:
> <root>
>   <a><b><c>
>         inner
>       </c>
>     </b>
>   </a>
> </root>

Sounds like the new behavior is better.  So I'm okay with this change
in behavior.

> This is my first bug fix, please let me know if I've missed anything (procedurally or otherwise).  I'm happy to
> rework/restructure this based on any suggestions.

Thanks, please see a few minor comments below.

> diff --git a/lisp/nxml/nxml-mode.el b/lisp/nxml/nxml-mode.el
> index 3869d0327fd..74108fa9d73 100644
> --- a/lisp/nxml/nxml-mode.el
> +++ b/lisp/nxml/nxml-mode.el

Please accompany the patches with a ChangeLog-style commit log
message.  The file CONTRIBUTE in the Emacs source tree describes our
conventions for writing log messages, and you can use "git log" to see
these conventions in action in our repository.

Also, please try to use "git format-patch" to format the patches, as
that makes it easier for us to install the patches.

> @@ -1352,15 +1354,19 @@ nxml-compute-indent-from-matching-start-tag
>  	     (goto-char xmltok-start)
>  	     (skip-chars-backward " \t")
>  	     (bolp))
> -	   (current-indentation)))))
> +	   (+ (current-indentation)
> +              ;; in the case of a line starting with data, keep the
> +              ;; indent level above the starting tag.

Comments should start with a capitalized letter.

> +          (nxml-tokenize-forward)
> +          (when (> (point) bol)         ; one token spans this and the line before
> +            (throw 'indent (nxml-compute-indent-in-token bol)))
> +          
> +          ;; Scan over the prevous line to determine the change in element depth
> +          (setq start-type-before xmltok-type)
> +          (while (< (point) bol)        ; examine all tags on the previous line

Comments should end with a period (i.e., should be full English
sentences), and should not overflow the 80-column line length, and
preferably not the fill-column as well.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#7937; Package emacs. Full text available.

Message received at 7937 <at> debbugs.gnu.org:


Received: (at 7937) by debbugs.gnu.org; 28 Mar 2023 19:27:05 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Mar 28 15:27:05 2023
Received: from localhost ([127.0.0.1]:50727 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1phEyG-0004jb-6Y
	for submit <at> debbugs.gnu.org; Tue, 28 Mar 2023 15:27:04 -0400
Received: from mail-pj1-f47.google.com ([209.85.216.47]:54801)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <pallagun@HIDDEN>) id 1phEgA-0004GZ-0A
 for 7937 <at> debbugs.gnu.org; Tue, 28 Mar 2023 15:08:22 -0400
Received: by mail-pj1-f47.google.com with SMTP id a16so11806530pjs.4
 for <7937 <at> debbugs.gnu.org>; Tue, 28 Mar 2023 12:08:21 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20210112; t=1680030496;
 h=to:subject:message-id:date:from:mime-version:from:to:cc:subject
 :date:message-id:reply-to;
 bh=OwE8BlXXNWEamFGe97P3rsVPLx3h1jIVTiK8UfW1NTg=;
 b=KIwmdpzYXeYCKpDU6HhYD9CvGBgN3kRb4CYDO6pEutrQMikfNtqprhjkyXGF6uPBfD
 O+MYHyJsZ3CZB/UhGvMD4AjxUMf3PwGcbrZX2VjMTDOGokXR9orHpvO64RWxSVqULDId
 faR8jYaWZgRsH2U0ttUrNsKwTjVj9EfiZwmtkTEa32lmwVKhLHI3qqtgYdy7EUFIUO7V
 V9sbq/chw1VJuW1AGNMgy64AmMwT3WftPFOvCrpZtaDWg8G2stsRF2vfnyzPVqsPOyzP
 Z7bH8mot0roXbrLP1A8zoi/GDXuUWbhkWX64SC7j4LAp95kATrap+ySfYd3zhaau4hWg
 kP9Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112; t=1680030496;
 h=to:subject:message-id:date:from:mime-version:x-gm-message-state
 :from:to:cc:subject:date:message-id:reply-to;
 bh=OwE8BlXXNWEamFGe97P3rsVPLx3h1jIVTiK8UfW1NTg=;
 b=DoguzymbgOFoSpjFEw0doyDnOjshyGjJ2CafssSrEm7Fc3tEZwFrSK41kVYF67rMNT
 Yl4Gf2WNWNPcZyrnVXKaffQbQ5Z2BmdbJlvHSa0kNUaxduJu9Pt1ZDFvajAenuY1f9ao
 9beVbNl1ntd61HDM6ddn+C3Il0mpNtOCaNFY6t/L4ZmA4y+wAdi20d429TY6ZyH8yzhd
 NmPtyYLsPYidj7AGjG8WbVO6LQ8Ado2X+IsZsWIQWRJIywXQ1m/jtMSyPi5ULjlShzMn
 pTPJBnBoAA9PZsBexXt6HvN6loTnq9lCZVW1r2KT2m/qMVkxH7Ok5DkSVOvLZRM8r2NF
 /aTg==
X-Gm-Message-State: AAQBX9efQpd6o83KWC+OUAy5H7M6Rq7qwUAzABuuWr9kct5XCONO81oQ
 lMbxKUho3Fi9c710eWOK++qWOBBmrKT6wKgwU0v2Ex2T/KI=
X-Google-Smtp-Source: AKy350YudO8hiIoBFJ5bbCvf+m9Wd7F2iOwYZIyZ9J1vXik8KF+cWMvj9AHpnnHTLt4UUsbbpIgFlAQegmrOo7wo75M=
X-Received: by 2002:a17:902:9b87:b0:1a1:ffc0:8b9e with SMTP id
 y7-20020a1709029b8700b001a1ffc08b9emr6188426plp.4.1680030495730; Tue, 28 Mar
 2023 12:08:15 -0700 (PDT)
MIME-Version: 1.0
From: Stephen Meister <pallagun@HIDDEN>
Date: Tue, 28 Mar 2023 15:05:05 -0400
Message-ID: <CAMrh0GMapEMPaeR=y=qYu8MHXpA5DhsSejcWXLMeWB4e_f26CA@HIDDEN>
Subject: bug#7937: nxml-mode indenting bug fix.
To: 7937 <at> debbugs.gnu.org
Content-Type: multipart/mixed; boundary="000000000000e925a105f7fa9456"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 7937
X-Mailman-Approved-At: Tue, 28 Mar 2023 15:27:00 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

--000000000000e925a105f7fa9456
Content-Type: multipart/alternative; boundary="000000000000e9259f05f7fa9454"

--000000000000e9259f05f7fa9454
Content-Type: text/plain; charset="UTF-8"

Hi,
  I've tried to put a fix in place for bug 7937 (and possibly 7768
unintentionally).  The repair I've made will cause changes in the way that
nxml indents lines under normal circumstances.  I'm not sure if a change
like this is acceptable given that I'm only trying to fix a bug.  The
behavior change is most visible in a situation such as:

<root>
  <a><b><c>
    inner
  </c>
</b>
  </a>
</root>

Which would now be indented as:
<root>
  <a><b><c>
        inner
      </c>
    </b>
  </a>
</root>

There are additional tests which show more of the indenting changes as well.

This is my first bug fix, please let me know if I've missed anything
(procedurally or otherwise).  I'm happy to rework/restructure this based on
any suggestions.

-steve

--000000000000e9259f05f7fa9454
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Hi,</div><div>=C2=A0 I&#39;ve tried to put a fix in p=
lace for bug 7937 (and possibly 7768 unintentionally).=C2=A0 The repair I&#=
39;ve made will cause changes in the way that nxml indents lines under norm=
al circumstances.=C2=A0 I&#39;m not sure if a change like this is acceptabl=
e given that I&#39;m only trying to fix a bug.=C2=A0 The behavior change is=
 most visible in a situation such as:</div><div><br></div><div>&lt;root&gt;=
<br>=C2=A0 &lt;a&gt;&lt;b&gt;&lt;c&gt;<br>=C2=A0 =C2=A0 inner<br>=C2=A0 &lt=
;/c&gt;<br>&lt;/b&gt;<br>=C2=A0 &lt;/a&gt;<br>&lt;/root&gt;</div><div><br><=
/div><div>Which would now be indented as:<br>&lt;root&gt;<br>=C2=A0 &lt;a&g=
t;&lt;b&gt;&lt;c&gt;<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 inner<br>=C2=A0 =C2=A0 =
=C2=A0 &lt;/c&gt;<br>=C2=A0 =C2=A0 &lt;/b&gt;<br>=C2=A0 &lt;/a&gt;<br>&lt;/=
root&gt;<br></div><div><br></div><div>There are additional tests which show=
 more of the indenting changes as well.</div><div><br></div><div>This is my=
 first bug fix, please let me know if I&#39;ve missed anything (procedurall=
y or otherwise).=C2=A0 I&#39;m happy to rework/restructure this based on an=
y suggestions.</div><div><br></div><div>-steve<br></div><div><br><br><br><b=
r><br></div></div>

--000000000000e9259f05f7fa9454--

--000000000000e925a105f7fa9456
Content-Type: text/x-patch; charset="US-ASCII"; name="bug7937.patch"
Content-Disposition: attachment; filename="bug7937.patch"
Content-Transfer-Encoding: base64
Content-ID: <f_lfsmmvdb0>
X-Attachment-Id: f_lfsmmvdb0

ZGlmZiAtLWdpdCBhL2xpc3AvbnhtbC9ueG1s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WVudCkpCi0JICAgICAn
c3RhcnQtdGFnCi0JICAgJ21peGVkKSkKLQkoKG1lbXEgeG1sdG9rLXR5cGUgJyhlbmQtdGFnIHBh
cnRpYWwtZW5kLXRhZykpCi0JIChpZiAobWVtcSBjb250ZXh0ICcobmlsIGVuZC10YWcgY29tbWVu
dCkpCi0JICAgICAnZW5kLXRhZwotCSAgICdtaXhlZCkpCi0JKChlcSB4bWx0b2stdHlwZSAnY29t
bWVudCkKLQkgKGNvbmQgKChtZW1xIGNvbnRleHQgJyhzdGFydC10YWcgZW5kLXRhZyBjb21tZW50
KSkKLQkJY29udGV4dCkKLQkgICAgICAgKGNvbnRleHQgJ21peGVkKQotCSAgICAgICAodCAnY29t
bWVudCkpKQotCShjb250ZXh0ICdtaXhlZCkKLQkodCAnbWFya3VwKSkpCisgICAgICAgIChsZXQg
KChkZXB0aC1iZWZvcmUgMCkKKyAgICAgICAgICAgICAgKGRlcHRoLWFmdGVyIDApCisgICAgICAg
ICAgICAgIHN0YXJ0LXR5cGUtYmVmb3JlKQorICAgICAgICAgIChueG1sLXRva2VuaXplLWZvcndh
cmQpCisgICAgICAgICAgKHdoZW4gKD4gKHBvaW50KSBib2wpICAgICAgICAgOyBvbmUgdG9rZW4g
c3BhbnMgdGhpcyBhbmQgdGhlIGxpbmUgYmVmb3JlCisgICAgICAgICAgICAodGhyb3cgJ2luZGVu
dCAobnhtbC1jb21wdXRlLWluZGVudC1pbi10b2tlbiBib2wpKSkKKyAgICAgICAgICAKKyAgICAg
ICAgICA7OyBTY2FuIG92ZXIgdGhlIHByZXZvdXMgbGluZSB0byBkZXRlcm1pbmUgdGhlIGNoYW5n
ZSBpbiBlbGVtZW50IGRlcHRoCisgICAgICAgICAgKHNldHEgc3RhcnQtdHlwZS1iZWZvcmUgeG1s
dG9rLXR5cGUpCisgICAgICAgICAgKHdoaWxlICg8IChwb2ludCkgYm9sKSAgICAgICAgOyBleGFt
aW5lIGFsbCB0YWdzIG9uIHRoZSBwcmV2aW91cyBsaW5lCisgICAgICAgICAgICAoY29uZCAoKGVx
IHhtbHRvay10eXBlICdwYXJ0aWFsLXN0YXJ0LXRhZykKKyAgICAgICAgICAgICAgICAgICAodGhy
b3cgJ2luZGVudCAobnhtbC1jb21wdXRlLWluZGVudC1pbi10b2tlbiBib2wpKSkKKyAgICAgICAg
ICAgICAgICAgICgoZXEgeG1sdG9rLXR5cGUgJ3N0YXJ0LXRhZykKKyAgICAgICAgICAgICAgICAg
ICAoY2wtaW5jZiBkZXB0aC1iZWZvcmUpKQorICAgICAgICAgICAgICAgICAgKChlcSB4bWx0b2st
dHlwZSAnZW5kLXRhZykKKyAgICAgICAgICAgICAgICAgICAoY2wtaW5jZiBkZXB0aC1iZWZvcmUg
LTEpKSkKKyAgICAgICAgICAgIChza2lwLWNoYXJzLWZvcndhcmQgIiBcdFxyXG4iKQorICAgICAg
ICAgICAgKG54bWwtdG9rZW5pemUtZm9yd2FyZCkpCisgICAgICAgICAgCisgICAgICAgICAgOzsg
U2NhbiBvdmVyIHRoZSBjdXJyZW50IGxpbmUgdG8gZGV0ZXJtaW5lIHRoZSBjaGFuZ2UgaW4gZWxl
bWVudCBkZXB0aAorICAgICAgICAgICh3aGlsZSAoYW5kICg8PSAocG9pbnQpIGVvbCkgICAgICAg
IDsgZXhhbWluZSBhbGwgdGFncyBvbiB0aGUgY3VycmVudCBsaW5lLgorICAgICAgICAgICAgICAg
ICAgICAgICg8IChwb2ludCkgKHBvaW50LW1heCkpKQorICAgICAgICAgICAgKGNvbmQgKChlcSAg
eG1sdG9rLXR5cGUgJ3N0YXJ0LXRhZykKKyAgICAgICAgICAgICAgICAgICAoY2wtaW5jZiBkZXB0
aC1hZnRlcikpCisgICAgICAgICAgICAgICAgICAoKGVxIHhtbHRvay10eXBlICdlbmQtdGFnKQor
ICAgICAgICAgICAgICAgICAgIChjbC1pbmNmIGRlcHRoLWFmdGVyIC0xKSkpCisgICAgICAgICAg
ICAoc2tpcC1jaGFycy1mb3J3YXJkICIgXHRcclxuIikKKyAgICAgICAgICAgIChueG1sLXRva2Vu
aXplLWZvcndhcmQpKQorICAgICAgICAgIAorICAgICAgICAgIChnb3RvLWNoYXIgcmVmKQorCSAg
KCsgKGN1cnJlbnQtY29sdW1uKQorCSAgICAgKCogbnhtbC1jaGlsZC1pbmRlbnQKKyAgICAgICAg
ICAgICAgICAoKyAobWF4IDAgZGVwdGgtYmVmb3JlKQorICAgICAgICAgICAgICAgICAgIChtaW4g
MCBkZXB0aC1hZnRlcikKKyAgICAgICAgICAgICAgICAgICA7OyBpZiBvdXIgYmVmb3JlLWxpbmUg
c3RhcnRlZCBhcyBhIGRhdGEgZWxlbWVudCB3ZQorICAgICAgICAgICAgICAgICAgIDs7IG11c3Qg
YmFjayBvdXQgdGhhdCBpbmRlbnRhdGlvbiBhcyB3ZWxsIGFzIGxvbmcKKyAgICAgICAgICAgICAg
ICAgICA7OyBhcyB3ZSBhcmUgbm90IGJlZ2lubmluZyBhZGRpdGlvbmFsIHRhZ3MKKyAgICAgICAg
ICAgICAgICAgICAoaWYgKGFuZCAobWVtcSBzdGFydC10eXBlLWJlZm9yZSAnKGRhdGEgY2RhdGEt
c2VjdGlvbikpCisgICAgICAgICAgICAgICAgICAgICAgICAgICAgKD49IGRlcHRoLWFmdGVyIDAp
CisgICAgICAgICAgICAgICAgICAgICAgICAgICAgKDwgZGVwdGgtYmVmb3JlIDApKQorICAgICAg
ICAgICAgICAgICAgICAgICAtMQorICAgICAgICAgICAgICAgICAgICAgMCkpKSkpKSkpKQogCiAo
ZGVmdW4gbnhtbC1jb21wdXRlLWluZGVudC1pbi10b2tlbiAocG9zKQogICAiUmV0dXJuIHRoZSBp
bmRlbnQgZm9yIGEgbGluZSB0aGF0IHN0YXJ0cyBpbnNpZGUgYSB0b2tlbi4KZGlmZiAtLWdpdCBh
L3Rlc3QvbGlzcC9ueG1sL254bWwtbW9kZS10ZXN0cy5lbCBiL3Rlc3QvbGlzcC9ueG1sL254bWwt
bW9kZS10ZXN0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IDxlPjwv
ZT4KKyAgPC9kPjxpbm5lciAvPjwvYz48L2I+PC9hPgorICA8c2luZ2xlIC8+CisgIDxvbmU+PHR3
bz48dGhyZWU+CisgICAgICAgIGZvdXIKKyAgICAgIDwvdGhyZWU+CisgICAgPC90d28+CisgIDwv
b25lPgorICA8b25lPgorICAgIDx0d28+CisgICAgICA8dGhyZWU+CisgICAgICAgIGZvdXIKKyAg
PC90aHJlZT48L3R3bz48L29uZT4KKyAgPG9uZT48dHdvPgorICAgICAgdGhyZWU8Zm91cj4KKyAg
ICAgICAgZml2ZQorICAgICAgPC9mb3VyPgorICAgIDwvdHdvPgorICA8L29uZT4KKzwva21sPgor
IikpKQorCiAocHJvdmlkZSAnbnhtbC1tb2RlLXRlc3RzKQogOzs7IG54bWwtbW9kZS10ZXN0cy5l
bCBlbmRzIGhlcmUK
--000000000000e925a105f7fa9456--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#7937; Package emacs. Full text available.
Added tag(s) confirmed. Request was from Lars Ingebrigtsen <larsi@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 7937 <at> debbugs.gnu.org:


Received: (at 7937) by debbugs.gnu.org; 7 Aug 2020 10:32:34 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Aug 07 06:32:34 2020
Received: from localhost ([127.0.0.1]:55848 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1k3zfu-0005RF-Ax
	for submit <at> debbugs.gnu.org; Fri, 07 Aug 2020 06:32:34 -0400
Received: from quimby.gnus.org ([95.216.78.240]:37800)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1k3zfs-0005ML-Na
 for 7937 <at> debbugs.gnu.org; Fri, 07 Aug 2020 06:32:33 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
 s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID
 :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID:
 Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc
 :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe:
 List-Post:List-Owner:List-Archive;
 bh=79mfrzByox+vRoWkPAIDZy4/FbkWfyjoMZu4hXjjWXY=; b=XA16E4q4cmpYlV/gSlRmeYsbVv
 pHANiBK5yz97KY34PQHR6p5QOyq8GS2UOZ/YEdbU1n73tVY1EvySoPFH2HS6Mg25aGSWvJWrQi7d3
 rUjZh/SMHtYEjKlQIF4reP/iyu069UkN3tma3aotRQbSNEv/u6Fb9BoPI+ctwwSIFOFI=;
Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo)
 by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>)
 id 1k3zff-0005xf-BN; Fri, 07 Aug 2020 12:32:26 +0200
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson <jidanni@HIDDEN>
Subject: Re: bug#7937: nxml-mode.el indenting wrong when more than one <> on
 a line
References: <CADwFkmmTVTRBAMqTwrZ2WCuxt8+kVjjBXb=ViJ32tM8Q24uGgA@HIDDEN>
 <877e52lb3t.7.fsf@HIDDEN>
Date: Fri, 07 Aug 2020 12:32:17 +0200
In-Reply-To: <877e52lb3t.7.fsf@HIDDEN> (=?utf-8?B?IuepjeS4ueWwvA==?=
 Dan Jacobson"'s message of "Fri, 18 Oct 2019 16:19:18 +0800")
Message-ID: <87h7te4uha.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.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
 @@CONTACT_ADDRESS@@ for details.
 
 Content preview:  積丹尼 Dan Jacobson <jidanni@HIDDEN> writes: >>>>>>
    "SK" == Stefan Kangas <stefan@HIDDEN> writes: > > SK> What's the expected
    indentation here? > > Simple: > <Folder> > <Folder> > etc. > > We didn't
   close the Folder tag, so it has no "right" [...] 
 
 Content analysis details:   (-2.9 points, 5.0 required)
 
  pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
                             [score: 0.0000]
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 7937
Cc: 7937 <at> debbugs.gnu.org, Stefan Kangas <stefan@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

=E7=A9=8D=E4=B8=B9=E5=B0=BC Dan Jacobson <jidanni@HIDDEN> writes:

>>>>>> "SK" =3D=3D Stefan Kangas <stefan@HIDDEN> writes:
>
> SK> What's the expected indentation here?
>
> Simple:
> <Folder>
>    <Folder>
> etc.
>
> We didn't close the Folder tag, so it has no "right" not to indent it!

This bug is still present in Emacs 28.1.

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




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#7937; Package emacs. Full text available.

Message received at 7937 <at> debbugs.gnu.org:


Received: (at 7937) by debbugs.gnu.org; 18 Oct 2019 08:19:32 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Oct 18 04:19:32 2019
Received: from localhost ([127.0.0.1]:49261 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iLNTv-00043C-MY
	for submit <at> debbugs.gnu.org; Fri, 18 Oct 2019 04:19:32 -0400
Received: from dragonfly.birch.relay.mailchannels.net ([23.83.209.51]:48033)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <jidanni@HIDDEN>) id 1iLNTt-000431-Ie
 for 7937 <at> debbugs.gnu.org; Fri, 18 Oct 2019 04:19:30 -0400
X-Sender-Id: dreamhost|x-authsender|jidanni@HIDDEN
Received: from relay.mailchannels.net (localhost [127.0.0.1])
 by relay.mailchannels.net (Postfix) with ESMTP id 49D86580DE0;
 Fri, 18 Oct 2019 08:19:28 +0000 (UTC)
Received: from pdx1-sub0-mail-a81.g.dreamhost.com
 (100-96-90-126.trex.outbound.svc.cluster.local [100.96.90.126])
 (Authenticated sender: dreamhost)
 by relay.mailchannels.net (Postfix) with ESMTPA id AB6185800AE;
 Fri, 18 Oct 2019 08:19:27 +0000 (UTC)
X-Sender-Id: dreamhost|x-authsender|jidanni@HIDDEN
Received: from pdx1-sub0-mail-a81.g.dreamhost.com ([TEMPUNAVAIL].
 [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384)
 by 0.0.0.0:2500 (trex/5.18.5); Fri, 18 Oct 2019 08:19:28 +0000
X-MC-Relay: Neutral
X-MailChannels-SenderId: dreamhost|x-authsender|jidanni@HIDDEN
X-MailChannels-Auth-Id: dreamhost
X-Society-Stop: 40a4f79344ea9e94_1571386768112_1560000379
X-MC-Loop-Signature: 1571386768112:3399572362
X-MC-Ingress-Time: 1571386768112
Received: from pdx1-sub0-mail-a81.g.dreamhost.com (localhost [127.0.0.1])
 by pdx1-sub0-mail-a81.g.dreamhost.com (Postfix) with ESMTP id C6BD98EA49;
 Fri, 18 Oct 2019 01:19:24 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to:cc
 :subject:references:date:message-id:mime-version:content-type;
 s=jidanni.org; bh=u7Wnuw9nAV5waTKgpo1DRNGPtOM=; b=DtcVYGKDZhPHr
 hUs0ho5eJmS4uE5ZD5CklkRI93Rw+U466gYBoRUZcVoOCUor0JHEFThug4IsNVl/
 KTBCTn1+GpP6mtImK8x4k4lBcwwFlsj96Jc7hOCMmNZSagX4hWB730F/NxzqDD0K
 7ZoPHhAIc7j9kw2YaDCyE8E+nOJszw=
Received: from jidanni.org (39-10-37-167.adsl.fetnet.net [39.10.37.167])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (No client certificate requested)
 (Authenticated sender: jidanni@HIDDEN)
 by pdx1-sub0-mail-a81.g.dreamhost.com (Postfix) with ESMTPSA id 172068EA5A;
 Fri, 18 Oct 2019 01:19:23 -0700 (PDT)
X-DH-BACKEND: pdx1-sub0-mail-a81
From: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson <jidanni@HIDDEN>
To: Stefan Kangas <stefan@HIDDEN>
Subject: Re: bug#7937: nxml-mode.el indenting wrong when more than one <> on a
 line
References: <CADwFkmmTVTRBAMqTwrZ2WCuxt8+kVjjBXb=ViJ32tM8Q24uGgA@HIDDEN>
Date: Fri, 18 Oct 2019 16:19:18 +0800
Message-ID: <877e52lb3t.7.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 7937
Cc: 7937 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

>>>>> "SK" == Stefan Kangas <stefan@HIDDEN> writes:

SK> What's the expected indentation here?

Simple:
<Folder>
   <Folder>
etc.

We didn't close the Folder tag, so it has no "right" not to indent it!




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#7937; Package emacs. Full text available.

Message received at 7937 <at> debbugs.gnu.org:


Received: (at 7937) by debbugs.gnu.org; 14 Oct 2019 15:41:34 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Oct 14 11:41:34 2019
Received: from localhost ([127.0.0.1]:41539 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iK2TV-0006xr-Sk
	for submit <at> debbugs.gnu.org; Mon, 14 Oct 2019 11:41:34 -0400
Received: from mail-pl1-f175.google.com ([209.85.214.175]:45387)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <stefankangas@HIDDEN>) id 1iK2TU-0006xa-Kk
 for 7937 <at> debbugs.gnu.org; Mon, 14 Oct 2019 11:41:33 -0400
Received: by mail-pl1-f175.google.com with SMTP id u12so8161037pls.12
 for <7937 <at> debbugs.gnu.org>; Mon, 14 Oct 2019 08:41: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:from:date:message-id:subject:to:cc
 :content-transfer-encoding;
 bh=cKZxh9bgdDb8sA+uevpy5cj6Pxk/88R3yqsg7Ofyphs=;
 b=G3tuHG6/5vDENLlrNLpg43P5YbPzrMrpAYBQ3/5Nb7U8CDQrD3HMKH+zU0PKvRuA7I
 ydBulehA7XuxSmvZQ+In478CDUJMNLH+MVAJbxDB4jWlQYavV2kPLpzdk3prJQFbTGk6
 GbpPfPHfgD1MS54enIfCJGtEN2Vsvg9Hk5X4seefDeK9TepUvoBAm+9FrLt8KZnUlwOq
 DmSfDFi2ONotKWkkYgPXN7ym0lTEtoE2BrtjMUclix0bZWWrYt2RYDB1Z4yc5Qrref57
 e1WC+fWk2FVNZQxsBBLHPOmfkJpPOv/5kv8lPKib4RQ6fEiYdMv3CCg0YI0rjJrr/5Ly
 v1/A==
X-Gm-Message-State: APjAAAWWZ8S83F42Dk1SZ7rYTnK5EC0omFsiUCGH5agGFuDtFErtlZ+S
 /Gsit4w4EzJRlyOlOJ4FldfqNr/HPgiRIqN6A8VeckluLp8=
X-Google-Smtp-Source: APXvYqzEXFOECJVRUXv/otpdVeBbsAbMkD1TKYjXlr+Ktx9PbPqZeyR/vRqzunZyVXiVrzPWDkVfvXHYWY+sekvLeAM=
X-Received: by 2002:a17:902:6b88:: with SMTP id
 p8mr29128561plk.251.1571067686984; 
 Mon, 14 Oct 2019 08:41:26 -0700 (PDT)
MIME-Version: 1.0
From: Stefan Kangas <stefan@HIDDEN>
Date: Mon, 14 Oct 2019 17:41:15 +0200
Message-ID: <CADwFkmmTVTRBAMqTwrZ2WCuxt8+kVjjBXb=ViJ32tM8Q24uGgA@HIDDEN>
Subject: Re: bug#7937: nxml-mode.el indenting wrong when more than one <> on a
 line
To: =?UTF-8?B?56mN5Li55bC8IERhbiBKYWNvYnNvbg==?= <jidanni@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.3 (/)
X-Debbugs-Envelope-To: 7937
Cc: 7937 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)

jidanni@HIDDEN writes:

> The nxml-mode indenting (C-x h TAB) is wrong as can be seen by the
> </Folder></Folder> lining up on top of themselves, etc.
> emacs-version "24.0.50.1" http://jidanni.org/comp/configuration/
>
> <?xml version=3D"1.0" encoding=3D"UTF-8"?>
> <kml xmlns=3D"http://www.opengis.net/kml/2.2">
>   <Document>
>     <Folder><name>=E5=99=AA=E9=9F=B3 Noise</name><description>http://jida=
nni.org/me/quiet.html</description>
>     <Folder><name>=E6=85=B6=E7=A6=8F=E8=A1=97 1-3 Qingfu St.</name>
>     <Placemark><name>Luo Yuntian</name><LineString><coordinates>
>     120.868205,24.176483 120.865225,24.181802</coordinates></LineString><=
/Placemark>
>     </Folder>
>     <Folder><name>=E6=85=B6=E7=A6=8F=E8=A1=97 1-6 Qingfu St.</name>
>     <Placemark><name>Chen Chunlai</name><LineString><coordinates>
>     120.877008,24.187393 120.866215,24.181668</coordinates></LineString><=
/Placemark>
>     </Folder>
>     </Folder>
>   </Document>
> </kml>

What's the expected indentation here?

Best regards,
Stefan Kangas




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#7937; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 29 Jan 2011 21:59:13 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jan 29 16:59:13 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1PjIp7-0007dI-AM
	for submit <at> debbugs.gnu.org; Sat, 29 Jan 2011 16:59:13 -0500
Received: from eggs.gnu.org ([140.186.70.92])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <jidanni@HIDDEN>) id 1PjIp5-0007d7-J9
	for submit <at> debbugs.gnu.org; Sat, 29 Jan 2011 16:59:12 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <jidanni@HIDDEN>) id 1PjIx4-00083h-6N
	for submit <at> debbugs.gnu.org; Sat, 29 Jan 2011 17:07:27 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, 
	T_DKIM_INVALID autolearn=unavailable version=3.3.1
Received: from lists.gnu.org ([199.232.76.165]:60308)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jidanni@HIDDEN>) id 1PjIx3-00083F-Re
	for submit <at> debbugs.gnu.org; Sat, 29 Jan 2011 17:07:26 -0500
Received: from [140.186.70.92] (port=43798 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1PjIx1-0004Sq-16
	for bug-gnu-emacs@HIDDEN; Sat, 29 Jan 2011 17:07:24 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <jidanni@HIDDEN>) id 1PjIsj-0007Kf-Jn
	for bug-gnu-emacs@HIDDEN; Sat, 29 Jan 2011 17:02:58 -0500
Received: from caiajhbdccah.dreamhost.com ([208.97.132.207]:34400
	helo=homiemail-a60.g.dreamhost.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jidanni@HIDDEN>) id 1PjIsj-0007KW-80
	for bug-gnu-emacs@HIDDEN; Sat, 29 Jan 2011 17:02:57 -0500
Received: from homiemail-a60.g.dreamhost.com (localhost [127.0.0.1])
	by homiemail-a60.g.dreamhost.com (Postfix) with ESMTP id EB0173BC069
	for <bug-gnu-emacs@HIDDEN>; Sat, 29 Jan 2011 14:02:55 -0800 (PST)
DomainKey-Signature: a=rsa-sha1; c=nofws; d=jidanni.org; h=from:to:subject
	:date:message-id:mime-version:content-type:
	content-transfer-encoding; q=dns; s=jidanni.org; b=E+im6RzPAgfmh
	GzsCybZDQvHCBXjUmUQoi4ZlJf7STWr7sEkwbDjrFUmCPsADgV65fbi9a4zEfk4W
	b22xDZFoVtcmNEb1RgiN6TPkGku3rPQWJY8tWvIYAazn8/64g7MVN+xFKIeFvkzK
	0y4aaHJKM7tLa89hwnvI+aivmEw9F4=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to
	:subject:date:message-id:mime-version:content-type:
	content-transfer-encoding; s=jidanni.org; bh=UGkY8FY6jXOm8O8ZhdT
	JinDH/Dg=; b=e1MNZ9D+Ev4g+l+Td42RxkjZuuyH5ylGj77bexkDVBc+wjT9W4i
	Y8smmiFVsoRuSOzKVIylv3a4nsVP4j0RIJxZhydl2/0k/Jr1Xz6Om+cO1nrG6TCz
	LVIyLP4eyuUxkiM/2V3jW/tded4UBTOi0/IPl+kdfOSAKlAZM+wPaOJI=
Received: from jidanni.org (218-163-1-225.dynamic.hinet.net [218.163.1.225])
	(using TLSv1 with cipher AES256-SHA (256/256 bits))
	(No client certificate requested)
	(Authenticated sender: jidanni@HIDDEN)
	by homiemail-a60.g.dreamhost.com (Postfix) with ESMTPSA id 375643BC063
	for <bug-gnu-emacs@HIDDEN>; Sat, 29 Jan 2011 14:02:55 -0800 (PST)
From: jidanni@HIDDEN
To: bug-gnu-emacs@HIDDEN
Subject: nxml-mode.el indenting wrong when more than one <> on a line
Date: Sun, 30 Jan 2011 05:47:10 +0800
Message-ID: <87tygr9ych.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 208.97.132.207
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 199.232.76.165
X-Spam-Score: -5.4 (-----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -5.4 (-----)

The nxml-mode indenting (C-x h TAB) is wrong as can be seen by the
</Folder></Folder> lining up on top of themselves, etc.
emacs-version "24.0.50.1" http://jidanni.org/comp/configuration/

<?xml version=3D"1.0" encoding=3D"UTF-8"?>
<kml xmlns=3D"http://www.opengis.net/kml/2.2">
  <Document>
    <Folder><name>=E5=99=AA=E9=9F=B3 Noise</name><description>http://jida=
nni.org/me/quiet.html</description>
    <Folder><name>=E6=85=B6=E7=A6=8F=E8=A1=97 1-3 Qingfu St.</name>
    <Placemark><name>Luo Yuntian</name><LineString><coordinates>
    120.868205,24.176483 120.865225,24.181802</coordinates></LineString><=
/Placemark>
    </Folder>
    <Folder><name>=E6=85=B6=E7=A6=8F=E8=A1=97 1-6 Qingfu St.</name>
    <Placemark><name>Chen Chunlai</name><LineString><coordinates>
    120.877008,24.187393 120.866215,24.181668</coordinates></LineString><=
/Placemark>
    </Folder>
    </Folder>
  </Document>
</kml>




Acknowledgement sent to jidanni@HIDDEN:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#7937; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sat, 30 Sep 2023 23:15:02 UTC

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