GNU bug report logs - #32823
26.1; nxml-mode: "no matching start-tag" with long entity definition list

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; Reported by: Moritz@HIDDEN, "Bunkus <moritz"@bunkus.org; dated Mon, 24 Sep 2018 15:27:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

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


Received: (at 32823) by debbugs.gnu.org; 25 Sep 2018 06:56:21 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Sep 25 02:56:21 2018
Received: from localhost ([127.0.0.1]:52780 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1g4hGe-0002Kj-PL
	for submit <at> debbugs.gnu.org; Tue, 25 Sep 2018 02:56:20 -0400
Received: from eggs.gnu.org ([208.118.235.92]:35048)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1g4hGc-0002KX-Vw
 for 32823 <at> debbugs.gnu.org; Tue, 25 Sep 2018 02:56:19 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <eliz@HIDDEN>) id 1g4hGU-0000rh-K8
 for 32823 <at> debbugs.gnu.org; Tue, 25 Sep 2018 02:56:13 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled
 version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:50798)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1g4hGU-0000rN-Fc; Tue, 25 Sep 2018 02:56:10 -0400
Received: from [176.228.60.248] (port=1186 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1g4hGT-00032V-CM; Tue, 25 Sep 2018 02:56:10 -0400
Date: Tue, 25 Sep 2018 09:56:04 +0300
Message-Id: <838t3q9ibf.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Moritz Bunkus <moritz@HIDDEN>,
 Stefan Monnier <monnier@HIDDEN>
In-reply-to: <87tvme238m.fsf@HIDDEN> (message from Moritz Bunkus on Mon,
 24 Sep 2018 19:51:21 +0200)
Subject: Re: bug#32823: 26.1;
 nxml-mode: "no matching start-tag" with long entity definition list
References: <cul36tzjbze.fsf@HIDDEN> <83zhw6ammh.fsf@HIDDEN>
 <87va6u250k.fsf@HIDDEN> <83tvmeajsg.fsf@HIDDEN>
 <87tvme238m.fsf@HIDDEN>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: 32823
Cc: 32823 <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: -6.0 (------)

> From: Moritz Bunkus <moritz@HIDDEN>
> Cc: 32823 <at> debbugs.gnu.org
> Date: Mon, 24 Sep 2018 19:51:21 +0200
> 
> > I cannot seem to make it work here whatever I do, sorry.
> 
> Maybe you're doing something slightly different than I am. I've created a
> short screencast showing both nxml-finish-element not working and working
> after the entity definitions have been removed:
> 
> https://www.bunkus.org/misc/nxml-mode-bug-32823-01.webm
> 
> Maybe that'll help.

It did, thanks.  Turns out I was trying "C-c C-f" on the wrong
refentry line (there are too many of them).

Anyway, it sounds like the problem is with using syntax-ppss: its 8th
element is nil in the "good" invocation and non-nil in the "bad" one.
syntax-ppss is invoked on the closing bracket of this line:

  <refentry lang="en">

Maybe the syntax table used by nxml-mode (which it inherits from
sgml-mode) needs some augmentation, I'm not sure.  Hopefully, Stefan
could help.




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

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


Received: (at 32823) by debbugs.gnu.org; 24 Sep 2018 17:51:38 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 24 13:51:38 2018
Received: from localhost ([127.0.0.1]:52316 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1g4V1G-0003W6-5B
	for submit <at> debbugs.gnu.org; Mon, 24 Sep 2018 13:51:38 -0400
Received: from adara.bunkus.org ([144.76.6.84]:37433)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <moritz@HIDDEN>) id 1g4V1E-0003Vs-1i
 for 32823 <at> debbugs.gnu.org; Mon, 24 Sep 2018 13:51:36 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=bunkus.org;
 s=mail2017070101; 
 h=Content-Type:MIME-Version:Message-ID:Date:In-reply-to:Subject:Cc:To:From:References;
 bh=a+hrEZ62TYhXzOQ09f6tirpGpHmulCa2NMSOAtxlIsw=; 
 b=cKOQrcoSY2o4EvLEUIVR+J7bNitekOwqC0dxartE2mML8VgzWOZGIjs+o4JVFRAvzQmWf32ek4AjFvKZRKCkwYpeW+FpHG4VBHyb6TTYDPc5tTIcObCeVCcVok9elkgAwmAyjy0F3yZ50cDjXFTFekfCNv2MyixzmGtjZNFTTIma9/BqI6Hqmi7RkmdzioHsGM/LpjCnSNBI9G7qTTRf0OL5CcSpIOCcaBBRN5bYOOzKlgJH3k64I35S6PE3l6QISZiNwM4rK5W8Zwx3aEIhQjZNbt5HjkmQKmcs1rMOBz037SqqQtHLaIvYhkldluBA0KL2bUMJuSwfkq0gnjgHsAFQBoj2sPLjDCoV1W9uB3rbgtGZKNZR0v0L46zk92fp9JRGVTkI8x7x3te7mDS6lGtnF1UFizZK1/vDlA7zDdiQupYp6T16RYbGBePidWSH3I9bac64r8jeVcTvcdt5vLP8/WfFj2YlhrYneGuyI6IDOcX87nXCJ8u5b2mpHH913zzDajwhjfToztCy+GhbUmQ4GAyA8gm1ELRL8WXvdu2eidJ6rqGmakaug/UZsgq8gINUs4J+bWO1QSBHaQ9geQqaMRTmk8S6/E6J8VH2qiFrgCXfdLMpA/Bfo5ZKHwxNWQ4IuaoV6NDwQsHGPkRsCyHd9YXkS9sLD9wvo/b/WeQ=;
Received: from liselle.bunkus.org ([2a01:4f8:190:8147::105:1]:48896)
 by adara.bunkus.org with esmtps (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256)
 (Exim 4.82_1-5b7a7c0-XX) (envelope-from <moritz@HIDDEN>)
 id 1g4V15-00048n-38; Mon, 24 Sep 2018 19:51:28 +0200
X-Virus-Scanned: amavisd-new at bunkus.org
Received: from sweet-chili.local (unknown [192.168.191.4])
 by liselle.bunkus.org (Postfix) with ESMTPS id 4C05565401B5;
 Mon, 24 Sep 2018 19:51:22 +0200 (CEST)
Received: from sweet-chili (localhost [IPv6:::1])
 by sweet-chili.local (Postfix) with ESMTP id 81EC946E99A0;
 Mon, 24 Sep 2018 19:51:21 +0200 (CEST)
References: <cul36tzjbze.fsf@HIDDEN> <83zhw6ammh.fsf@HIDDEN>
 <87va6u250k.fsf@HIDDEN> <83tvmeajsg.fsf@HIDDEN>
User-agent: mu4e 1.0; emacs 26.1
From: Moritz Bunkus <moritz@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#32823: 26.1;
 nxml-mode: "no matching start-tag" with long entity definition list
In-reply-to: <83tvmeajsg.fsf@HIDDEN>
Date: Mon, 24 Sep 2018 19:51:21 +0200
Message-ID: <87tvme238m.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 32823
Cc: 32823 <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 (-)

Hey,

> I cannot seem to make it work here whatever I do, sorry.

Maybe you're doing something slightly different than I am. I've created a
short screencast showing both nxml-finish-element not working and working
after the entity definitions have been removed:

https://www.bunkus.org/misc/nxml-mode-bug-32823-01.webm

Maybe that'll help.

Kind regards,
mosu




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

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


Received: (at 32823) by debbugs.gnu.org; 24 Sep 2018 17:26:57 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 24 13:26:56 2018
Received: from localhost ([127.0.0.1]:52299 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1g4UdM-0002uL-Iq
	for submit <at> debbugs.gnu.org; Mon, 24 Sep 2018 13:26:56 -0400
Received: from eggs.gnu.org ([208.118.235.92]:46489)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1g4UdL-0002u7-Au
 for 32823 <at> debbugs.gnu.org; Mon, 24 Sep 2018 13:26:56 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <eliz@HIDDEN>) id 1g4UdC-0003Ll-7a
 for 32823 <at> debbugs.gnu.org; Mon, 24 Sep 2018 13:26:50 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_20 autolearn=disabled
 version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:39308)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1g4UdC-0003Kp-2v; Mon, 24 Sep 2018 13:26:46 -0400
Received: from [176.228.60.248] (port=2731 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1g4UdB-0003nA-MU; Mon, 24 Sep 2018 13:26:46 -0400
Date: Mon, 24 Sep 2018 20:26:39 +0300
Message-Id: <83tvmeajsg.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Moritz Bunkus <moritz@HIDDEN>
In-reply-to: <87va6u250k.fsf@HIDDEN> (message from Moritz Bunkus on Mon,
 24 Sep 2018 19:12:59 +0200)
Subject: Re: bug#32823: 26.1;
 nxml-mode: "no matching start-tag" with long entity definition list
References: <cul36tzjbze.fsf@HIDDEN> <83zhw6ammh.fsf@HIDDEN>
 <87va6u250k.fsf@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: 32823
Cc: 32823 <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: -6.0 (------)

> From: Moritz Bunkus <moritz@HIDDEN>
> Cc: 32823 <at> debbugs.gnu.org
> Date: Mon, 24 Sep 2018 19:12:59 +0200
> 
> Doh, stupid me. I made a copy & paste error in my example file. The
> offending line is:
> 
> <!ENTITY &product; "myprog">
> 
> which should read:
> 
> <!ENTITY product "myprog">
> 
> After that change the result will be valid again. Sorry about that.

Right, this settled it.

> > Maybe I'm not reproducing this correctly, but in my case it emits the
> > same error even after removing the ent5 line.
> 
> If removing ent5 isn't enough, try removing more entries. You can also
> remove all of the definitions including the [ … ] parenthesis, leaving you
> with just
> 
> …
> <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
> 
> <refentry lang="en">
> …
> 
> At this point C-c C-f should work at the latest.

I cannot seem to make it work here whatever I do, sorry.




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

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


Received: (at 32823) by debbugs.gnu.org; 24 Sep 2018 17:13:19 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 24 13:13:19 2018
Received: from localhost ([127.0.0.1]:52293 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1g4UQB-0002Zc-86
	for submit <at> debbugs.gnu.org; Mon, 24 Sep 2018 13:13:19 -0400
Received: from adara.bunkus.org ([144.76.6.84]:37405)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <moritz@HIDDEN>) id 1g4UQ8-0002ZH-2T
 for 32823 <at> debbugs.gnu.org; Mon, 24 Sep 2018 13:13:17 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=bunkus.org;
 s=mail2017070101; 
 h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:Date:In-reply-to:Subject:Cc:To:From:References;
 bh=ZMntnw6hd3fIVYOn2teDwSum3WGyYtXhCdEMHeEFZVY=; 
 b=Vwb17gvkxWDD6jjddEkj96yxKt5UE3jiOkKVnI6M7zDOlaoSR7nfJHGVjwK1svpJKAnkfSHVlx2MAhu4j82Rux5O22d8HbUPZ80xTqBVGkAs+j3zWSt5dpy8NYVFAF2dN5NxKckJrF402dJxGF9FZYvZUJBixuQ+McUR5kXuu3zWXUlC8LYFAxbpW3qJ3IQstpOLOgFIxx1+ZGwz9jwTaUaFlbuPq6nixdPOcP5rrPT6c1IY9Klj3hxk50bFqykST+/pKCIyUGwTUAi4H0pEAh/QOcXMkJmX/S6kw7/emvcgDJD2Dmy8e9s1zx0FDpaO9zjdzWDk3AWpMNexyhmsxLzBXPtdzKWq9v2hTzCAkmxAHmhnTMf8M/gUTbQPtjKKsBmBzwal5CpkvlWQt//22VXeyQF6E9h3OoJ6X5PSmdGxhC6Efn2GzyH9Ah9zifBOzJZG8yIZjjZHayeUBLugj/B7Vhi3cFx5zte3scF09DZGTOOX3pEQM8rAtQyjFydN9TmZwo0k/uFpyojLluH1/goe3xKP3NI594++zg7WysUHtNn0PUTvPzHWOG4nXVf2Zw3mgFksE+3oW7X8Yr7FDbvbUVhTUixbsfDDyIv90cOMArPd11qPqhON/HrO9PeyBF+9vtuREKZV7yqyZywxHa39c8qss6FUmjwv/o6dEuA=;
Received: from liselle.bunkus.org ([2a01:4f8:190:8147::105:1]:47690)
 by adara.bunkus.org with esmtps (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256)
 (Exim 4.82_1-5b7a7c0-XX) (envelope-from <moritz@HIDDEN>)
 id 1g4UPy-0003Vh-1J; Mon, 24 Sep 2018 19:13:06 +0200
X-Virus-Scanned: amavisd-new at bunkus.org
Received: from sweet-chili.local (unknown [192.168.191.4])
 by liselle.bunkus.org (Postfix) with ESMTPS id 3F78665401B5;
 Mon, 24 Sep 2018 19:13:00 +0200 (CEST)
Received: from sweet-chili (localhost [IPv6:::1])
 by sweet-chili.local (Postfix) with ESMTP id 6A54446E93A3;
 Mon, 24 Sep 2018 19:12:59 +0200 (CEST)
References: <cul36tzjbze.fsf@HIDDEN> <83zhw6ammh.fsf@HIDDEN>
User-agent: mu4e 1.0; emacs 26.1
From: Moritz Bunkus <moritz@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#32823: 26.1;
 nxml-mode: "no matching start-tag" with long entity definition list
In-reply-to: <83zhw6ammh.fsf@HIDDEN>
Date: Mon, 24 Sep 2018 19:12:59 +0200
Message-ID: <87va6u250k.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 32823
Cc: 32823 <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 (-)

Hey,

thanks for giving it a try, Eli.

> It says "invalid" here...

Doh, stupid me. I made a copy & paste error in my example file. The
offending line is:

<!ENTITY &product; "myprog">

which should read:

<!ENTITY product "myprog">

After that change the result will be valid again. Sorry about that.

> Maybe I'm not reproducing this correctly, but in my case it emits the
> same error even after removing the ent5 line.

If removing ent5 isn't enough, try removing more entries. You can also
remove all of the definitions including the [ =E2=80=A6 ] parenthesis, leav=
ing you
with just

=E2=80=A6
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.=
oasis-open.org/docbook/xml/4.5/docbookx.dtd">

<refentry lang=3D"en">
=E2=80=A6

At this point C-c C-f should work at the latest.

Kind regards,
mosu




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

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


Received: (at 32823) by debbugs.gnu.org; 24 Sep 2018 16:25:45 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 24 12:25:45 2018
Received: from localhost ([127.0.0.1]:52271 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1g4Tg9-0001Po-86
	for submit <at> debbugs.gnu.org; Mon, 24 Sep 2018 12:25:45 -0400
Received: from eggs.gnu.org ([208.118.235.92]:55005)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1g4Tg4-0001PV-BG
 for 32823 <at> debbugs.gnu.org; Mon, 24 Sep 2018 12:25:43 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <eliz@HIDDEN>) id 1g4Tfw-0006uW-3f
 for 32823 <at> debbugs.gnu.org; Mon, 24 Sep 2018 12:25:35 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_05 autolearn=disabled
 version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:37645)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1g4Tfv-0006uS-WD; Mon, 24 Sep 2018 12:25:32 -0400
Received: from [176.228.60.248] (port=2766 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1g4Tfv-0006OX-Jj; Mon, 24 Sep 2018 12:25:31 -0400
Date: Mon, 24 Sep 2018 19:25:26 +0300
Message-Id: <83zhw6ammh.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Moritz@HIDDEN, Bunkus <moritz@HIDDEN>
In-reply-to: <cul36tzjbze.fsf@HIDDEN>
 (Moritz@HIDDEN)
Subject: Re: bug#32823: 26.1;
 nxml-mode: "no matching start-tag" with long entity definition list
References: <cul36tzjbze.fsf@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: 32823
Cc: 32823 <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: -6.0 (------)

> From: Moritz@HIDDEN,
> 	"Bunkus <moritz"@bunkus.org
> Date: Mon, 24 Sep 2018 14:50:29 +0200
> 
> Note that nxml-mode always states that the document is valid

It says "invalid" here...

> 1. Save the XML code below into a file.
> 2. Start emacs -Q
> 3. Open the test file.
> 4. Place the cursor at the end of the line starting with "<refentry…".
> 5. Try using the "nxml-finish-element" function, e.g. C-c C-f. It will
>    show the aforementioned error message instead of inserting "</refentry>".
> 6. Now shorten the entity definition list, e.g. by removing the whole
>    line defining "ent5". Execute "normal-mode" to let nxml-mode parse the
>    buffer again. Re-run the test from step 5. It will now insert
>    "</refentry>" properly.

Maybe I'm not reproducing this correctly, but in my case it emits the
same error even after removing the ent5 line.




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

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


Received: (at submit) by debbugs.gnu.org; 24 Sep 2018 15:26:47 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 24 11:26:47 2018
Received: from localhost ([127.0.0.1]:52239 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1g4Sl4-0008P0-Up
	for submit <at> debbugs.gnu.org; Mon, 24 Sep 2018 11:26:47 -0400
Received: from eggs.gnu.org ([208.118.235.92]:55616)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <moritz@HIDDEN>) id 1g4QK7-0004GK-9K
 for submit <at> debbugs.gnu.org; Mon, 24 Sep 2018 08:50:48 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <moritz@HIDDEN>) id 1g4QK1-0001tj-67
 for submit <at> debbugs.gnu.org; Mon, 24 Sep 2018 08:50:42 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_20,T_DKIM_INVALID
 autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:35139)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <moritz@HIDDEN>) id 1g4QK1-0001tZ-2w
 for submit <at> debbugs.gnu.org; Mon, 24 Sep 2018 08:50:41 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:36977)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <moritz@HIDDEN>) id 1g4QK0-0006R8-12
 for bug-gnu-emacs@HIDDEN; Mon, 24 Sep 2018 08:50:40 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <moritz@HIDDEN>) id 1g4QJz-0001si-0Z
 for bug-gnu-emacs@HIDDEN; Mon, 24 Sep 2018 08:50:39 -0400
Received: from merrimack.linet-services.de ([2a01:4f8:190:8901::3]:47040)
 by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <moritz@HIDDEN>) id 1g4QJy-0001rY-1G
 for bug-gnu-emacs@HIDDEN; Mon, 24 Sep 2018 08:50:38 -0400
Received: from ahwahnee.linet-services.de (unknown [10.199.108.1])
 by merrimack.linet-services.de (Postfix) with ESMTPS id DF12312409BA
 for <bug-gnu-emacs@HIDDEN>; Mon, 24 Sep 2018 14:50:32 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=linet-services.de;
 s=mail2017100201; t=1537793432;
 bh=hcTdSYgvxZlaN2EJwVhlJy0OLB//xdkN7MYpZBJWnh0=;
 h=From:To:Subject:Date:From;
 b=XZUPSukN1gHErtoz8b5ILzAO6CXfOi5tYEzuj234N7eRyBdkUUVUuJBi7nueSj33/
 JkMT8vPrcy72Orj47Ahm/Z45gWzLJVBOWxro+xwZhaweM3hIeEhgnx9n5z9XBoCeC7
 1WOyHbA4mZsJYEKr4z116lFhWTlHsRqOt/6V/IMF9g/DiiYqhIuZe4pCSZnm/8+FqP
 I2u7hiXDf3qCLu49KLGnNpCMbzST2z+ZYtbrpkJMiSRADoW46KPtg/Lhaqh8RO/fS2
 aXnNCUQr65c77kok+4dIWLqh9pPOOnH5NGcchTuYrjeuuiVFS3TnUbqMDuHgRtFQLk
 33wFmaWoBFQ/u8Tm+q7+Th2slgwsr3BZY883XiG7eHjFdMiMKmGsCiNEk/r5NyBX3x
 qpgfpVbIfJy0/69BDLdpcwi3jUKfpYHpWZxXzUEywKD5aW9piV/4N0zX1t3DAga3WP
 tfDVWHH8zBcKye5AujXsRK3TzQinOugiO+ssviqOVnL/Xw3SzsWtU+FgY7zbMrB8EB
 YOrRNv92pimsCCbzbWrSUXMI+CFKpJR9FG0XHIijnigGSPJrV+4zX6z1ZGVmRORg/o
 S4/glNskG5fNS1RnpBWx9zaMW2H7+faCcaXBnefW/OBLZaGVOkt+G2yofqrQ6maYie
 jz+b+QoqKVP40WmeWhi+sgn4=
Received: from [2001:1640:141:2:2546:345c:b971:3fe] (port=56890
 helo=chai-latte.bs.linet-services.de)
 by ahwahnee.linet-services.de with esmtp (Exim 4.82_1-5b7a7c0-XX)
 (envelope-from <moritz@HIDDEN>) id 1g4QJp-0007nA-3B
 for bug-gnu-emacs@HIDDEN; Mon, 24 Sep 2018 14:50:30 +0200
Received: from chai-latte (chai-latte.bs.linet-services.de [10.199.92.2])
 by chai-latte.bs.linet-services.de (Postfix) with ESMTPS id B36D35D111ED
 for <bug-gnu-emacs@HIDDEN>; Mon, 24 Sep 2018 14:50:29 +0200 (CEST)
From: Moritz@HIDDEN,
	"Bunkus <moritz"@bunkus.org
To: bug-gnu-emacs@HIDDEN
Subject: 26.1;
 nxml-mode: "no matching start-tag" with long entity definition list
Date: Mon, 24 Sep 2018 14:50:29 +0200
Message-ID: <cul36tzjbze.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: Genre and OS details not
 recognized.
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -3.8 (---)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Mon, 24 Sep 2018 11:26:45 -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: -4.8 (----)

Hey,

I'm using Emacs to write DocBook XML documents that will be turned into
man pages later. In said XML documents I often define entities used
later in the file. As soon as the that list gets too long (~5
definitions), nxml-mode fails to parse the following structure properly
and fails to close open start tags with the error message "No matching
start-tag".

Note that nxml-mode always states that the document is valid, even
though it fails to find an open start tag (I'm storing DocBook relaxng
schemas in ~/.xml/schemas/relaxng/docbook/4.5/=E2=80=A6, but the same is tr=
ue
when the schemas from /usr/share/emacs/26.1/etc/schema/=E2=80=A6 are used).

How to reproduce:

1. Save the XML code below into a file.
2. Start emacs -Q
3. Open the test file.
4. Place the cursor at the end of the line starting with "<refentry=E2=80=
=A6".
5. Try using the "nxml-finish-element" function, e.g. C-c C-f. It will
   show the aforementioned error message instead of inserting "</refentry>".
6. Now shorten the entity definition list, e.g. by removing the whole
   line defining "ent5". Execute "normal-mode" to let nxml-mode parse the
   buffer again. Re-run the test from step 5. It will now insert
   "</refentry>" properly.

---[ test file content start ]---------------------------------------------=
--------
<?xml version=3D"1.0" encoding=3D"utf-8"?>

<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.=
oasis-open.org/docbook/xml/4.5/docbookx.dtd"
[
<!ENTITY &product; "myprog">
<!ENTITY ent2 "moretext">
<!ENTITY ent3 "evenmoretext">

<!ENTITY ent4 "<citerefentry><refentrytitle>anotherprogram</refentrytitle><=
manvolnum>1</manvolnum></citerefentry>">
<!ENTITY ent5 "<citerefentry><refentrytitle>onemoreprogram</refentrytitle><=
manvolnum>1</manvolnum></citerefentry>">
]
>

<refentry lang=3D"en">
 <refentryinfo>
  <productname>&product;</productname>
 </refentryinfo>

 <refmeta>
  <refentrytitle>&product;</refentrytitle>
 </refmeta>

 <refnamediv>
  <refname>&product;</refname>
  <refpurpose>doing things</refpurpose>
 </refnamediv>

 <refsect1>
  <title>Test</title>
  <para>here</para>
 </refsect1>
</refentry>
---[ test file content end ]-----------------------------------------------=
------

Kind regards
mosu

In GNU Emacs 26.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.30)
 of 2018-07-05 built on juergen
Windowing system distributor 'The X.Org Foundation', version 11.0.12001000
Recent messages:
Saving file /home/mbunkus/tmp/nxml-test.xml...
Wrote /home/mbunkus/tmp/nxml-test.xml
Using schema ~/.xml/schemas/relaxng/docbook/4.5/docbook.rnc
nxml-finish-element-1: No matching start-tag
Saving file /home/mbunkus/tmp/nxml-test.xml...
Wrote /home/mbunkus/tmp/nxml-test.xml
Using schema ~/.xml/schemas/relaxng/docbook/4.5/docbook.rnc
Undo! [2 times]
Saving file /home/mbunkus/tmp/nxml-test.xml...
Wrote /home/mbunkus/tmp/nxml-test.xml

Configured using:
 'configure --prefix=3D/usr --sysconfdir=3D/etc --libexecdir=3D/usr/lib --l=
ocalstatedir=3D/var --with-x-toolkit=3Dgtk3 --with-xft --with-modules 'CFLA=
GS=3D-march=3Dx86-64 -mtune=3Dgeneric -O2 -pipe -fstack-protector-strong -f=
no-plt' CPPFLAGS=3D-D_FORTIFY_SOURCE=3D2 LDFLAGS=3D-Wl,-O1,--sort-common,--=
as-needed,-z,relro,-z,now'




Acknowledgement sent to Moritz@HIDDEN, "Bunkus <moritz"@bunkus.org:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#32823; 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: Tue, 25 Sep 2018 07:00:02 UTC

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