From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Vincent =?UTF-8?Q?Bela=C3=AFche?= Newsgroups: gmane.emacs.bugs Subject: bug#18308: 24.4.50; Info viewer cannot follow menu entry for '(texinfo) @- @hyphenation' Date: Thu, 21 Aug 2014 18:30:59 +0200 Message-ID: <8038cp4xfg.fsf@gmail.com> References: <80bnre44fc.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1408638745 4478 80.91.229.3 (21 Aug 2014 16:32:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 21 Aug 2014 16:32:25 +0000 (UTC) Cc: 18308@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Aug 21 18:32:18 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XKVHd-0004GN-Kz for geb-bug-gnu-emacs@m.gmane.org; Thu, 21 Aug 2014 18:32:17 +0200 Original-Received: from localhost ([::1]:33304 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XKVHd-0000Zg-A4 for geb-bug-gnu-emacs@m.gmane.org; Thu, 21 Aug 2014 12:32:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39713) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XKVHU-0000S8-5l for bug-gnu-emacs@gnu.org; Thu, 21 Aug 2014 12:32:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XKVHO-0002AX-EN for bug-gnu-emacs@gnu.org; Thu, 21 Aug 2014 12:32:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:42156) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XKVHO-0002AN-4d for bug-gnu-emacs@gnu.org; Thu, 21 Aug 2014 12:32:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XKVHN-0008JU-K9 for bug-gnu-emacs@gnu.org; Thu, 21 Aug 2014 12:32:01 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <80bnre44fc.fsf@gmail.com> Resent-From: Vincent =?UTF-8?Q?Bela=C3=AFche?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 21 Aug 2014 16:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18308 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 18308-submit@debbugs.gnu.org id=B18308.140863868331886 (code B ref 18308); Thu, 21 Aug 2014 16:32:01 +0000 Original-Received: (at 18308) by debbugs.gnu.org; 21 Aug 2014 16:31:23 +0000 Original-Received: from localhost ([127.0.0.1]:49099 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XKVGj-0008ID-Sl for submit@debbugs.gnu.org; Thu, 21 Aug 2014 12:31:22 -0400 Original-Received: from smtp10.smtpout.orange.fr ([80.12.242.132]:54500 helo=smtp.smtpout.orange.fr) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XKVGg-0008Hw-Tx for 18308@debbugs.gnu.org; Thu, 21 Aug 2014 12:31:20 -0400 Original-Received: from CHOUNEK ([2.2.154.52]) by mwinf5d19 with ME id hUXB1o00T185hBW03UXBca; Thu, 21 Aug 2014 18:31:12 +0200 X-ME-Helo: CHOUNEK X-ME-Date: Thu, 21 Aug 2014 18:31:12 +0200 X-ME-IP: 2.2.154.52 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:92576 Archived-At: Resent With cc to 18308@debbugs.gnu.org Feedback inserted below... ---------------------------------------- > Date: Thu, 21 Aug 2014 17:12:13 +0300 > From: eliz@gnu.org > Subject: Re: bug#18308: 24.4.50; Info viewer cannot follow menu entry for= '(texinfo) @- @hyphenation' > To: vincent.b.1@hotmail.fr > CC: 18308@debbugs.gnu.org > > > From: Vincent Bela=EFche > > Date: Thu, 21 Aug 2014 10:45:11 +0200 > > Cc: Vincent Bela=EFche > > > > In texinfo manual, info node `(texinfo) Breaks', if I set pointer on > > third menu entry and type RET, the I get message: > > > > user-error: No such node or anchor: @- @hyphenation > > This is not an Emacs bug, it's a bug in the Texinfo manual. For some > reason, it sometimes refers to this node as "@- @hyphenation" (with 2 > spaces), and sometimes as "@- @hyphenation" (with only 1 space). The > menu uses the former, while the node name uses the latter. So Emacs > cannot find the node. > > > However, if I type '3', then I go to the wanted node. > > That's because the command bound to '3' normalizes the whitespace in > the node name. I don't know why it does that, but that code exists > since about forever. > > Maybe we could consider normalizing the whitespace in the 1st case as > well, but that's just a work around for a buggy manual. I would not say that this is a bug in the manual --- manuals are written by human beings, and human beings are living creatures, just like bugs are ;-) . Rather, I think that this is a bug in the texinfo info compiler that should: 1) produce some warning message, as a matter of fact the manual is not consistent with info node `(texinfo) Node Line Requirements' --- see below why 2) collapse multiple spaces to a single space in node names as the info file is produced. In info node "(texinfo) Node Line Requirements", there is this statement: ----------------------------------------------------------------------- Spaces before and after names on the '@node' line are ignored. Multiple whitespace characters "inside" a name are collapsed to a single space. For example: @node foo bar, @node foo bar , @node foo bar, @node foo bar , all define the same node, namely 'foo bar'. References to the node should all use that name, with no leading or trailing spaces a single internal space. ----------------------------------------------------------------------- It seems that there is a typo in this node and the end of last sentence should read: "with no leading or trailing spaces *AND* a single internal space". Anyway, because the menu entry is a REFERENCE to the node, then it should use this name with a single internal space. Because it does not, the manual is not conformant to this spec. So, I think that you treate the EMACS info viewer bug as you like --- either close it, or think that you should make the info viewer more robust by collapsing multiple internal spaces to a single space like the '3' command does. My personal feeling is that you should robustify the info viewer. On my side I will open a bug Texinfo project to refer to this one and ask for compiler to handle point 1) and 2) above and correct the typo in the manual. Vincent.