From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.bugs Subject: bug#14717: 24.3.50; Info-try-follow-nearest-node misses some footnotes Date: Tue, 25 Jun 2013 20:34:53 +0200 Message-ID: <87vc52599u.fsf@rosalinde.fritz.box> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1372185380 7627 80.91.229.3 (25 Jun 2013 18:36:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 25 Jun 2013 18:36:20 +0000 (UTC) To: 14717@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jun 25 20:36:21 2013 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 1UrY6D-0000z2-8A for geb-bug-gnu-emacs@m.gmane.org; Tue, 25 Jun 2013 20:36:17 +0200 Original-Received: from localhost ([::1]:42634 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UrY6C-0005LJ-Os for geb-bug-gnu-emacs@m.gmane.org; Tue, 25 Jun 2013 14:36:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37080) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UrY66-0005KC-DP for bug-gnu-emacs@gnu.org; Tue, 25 Jun 2013 14:36:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UrY5y-00010b-TB for bug-gnu-emacs@gnu.org; Tue, 25 Jun 2013 14:36:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:46591) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UrY5y-00010W-QS for bug-gnu-emacs@gnu.org; Tue, 25 Jun 2013 14:36:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1UrY5y-0005Rc-H2 for bug-gnu-emacs@gnu.org; Tue, 25 Jun 2013 14:36:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stephen Berman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 25 Jun 2013 18:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 14717 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.137218532120839 (code B ref -1); Tue, 25 Jun 2013 18:36:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 25 Jun 2013 18:35:21 +0000 Original-Received: from localhost ([127.0.0.1]:40906 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UrY5I-0005Q2-EH for submit@debbugs.gnu.org; Tue, 25 Jun 2013 14:35:20 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:34969) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UrY5F-0005PT-Hd for submit@debbugs.gnu.org; Tue, 25 Jun 2013 14:35:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UrY55-0000k6-8m for submit@debbugs.gnu.org; Tue, 25 Jun 2013 14:35:12 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:41700) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UrY55-0000jr-4r for submit@debbugs.gnu.org; Tue, 25 Jun 2013 14:35:07 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36585) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UrY4y-000531-Oe for bug-gnu-emacs@gnu.org; Tue, 25 Jun 2013 14:35:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UrY4v-0000PW-Pt for bug-gnu-emacs@gnu.org; Tue, 25 Jun 2013 14:35:00 -0400 Original-Received: from mout.gmx.net ([212.227.15.19]:63462) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UrY4v-0000OV-Gk for bug-gnu-emacs@gnu.org; Tue, 25 Jun 2013 14:34:57 -0400 Original-Received: from mailout-de.gmx.net ([10.1.76.19]) by mrigmx.server.lan (mrigmx001) with ESMTP (Nemesis) id 0M0vtR-1TzjQu2cwx-00v4E9 for ; Tue, 25 Jun 2013 20:34:55 +0200 Original-Received: (qmail invoked by alias); 25 Jun 2013 18:34:54 -0000 Original-Received: from i59F575FA.versanet.de (EHLO rosalinde.fritz.box) [89.245.117.250] by mail.gmx.net (mp019) with SMTP; 25 Jun 2013 20:34:54 +0200 X-Authenticated: #20778731 X-Provags-ID: V01U2FsdGVkX1/m20F2hcvme5tPjQZuq4P8YnKOigR4bbRfvVcTeI JuT8kDA9hJ7PD3 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). 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:75584 Archived-At: 0. emacs -Q 1. Type `C-h i m Elisp RET m Using Interactive RET TAB TAB TAB' to put point on the left parent of the reference mark for footnote (1) in this node. 2. Type RET, expecting to jump to the footnote, but instead: => user-error: No such node or anchor: It may be a string; its contents are a sequence of elements The reason is that in Info-try-follow-nearest-node the search for a node name succeeds, so it never gets to the footnote search, but the matching string is not a node name, so user-error is signalled. The following patch makes the footnote search and hence jumping to the footnote in that node succeed, but I'll defer to the judgment of the Info or regexp gurus as to whether it's the best fix. === modified file 'lisp/info.el' *** lisp/info.el 2013-05-27 22:42:11 +0000 --- lisp/info.el 2013-06-25 18:24:56 +0000 *************** *** 3870,3892 **** ((setq node (Info-get-token (point) "\\*note[ \n\t]+" "\\*note[ \n\t]+\\([^:]*\\):\\(:\\|[ \n\t]*(\\)?")) (Info-follow-reference node fork)) - ;; menu item: node name - ((setq node (Info-get-token (point) "\\* +" "\\* +\\([^:]*\\)::")) - (Info-goto-node node fork)) - ;; menu item: node name or index entry - ((Info-get-token (point) "\\* +" "\\* +\\(.*\\): ") - (beginning-of-line) - (forward-char 2) - (setq node (Info-extract-menu-node-name nil (Info-index-node))) - (Info-goto-node node fork)) - ((setq node (Info-get-token (point) "Up: " "Up: \\([^,\n\t]*\\)")) - (Info-goto-node node fork)) - ((setq node (Info-get-token (point) "Next: " "Next: \\([^,\n\t]*\\)")) - (Info-goto-node node fork)) - ((setq node (Info-get-token (point) "File: " "File: \\([^,\n\t]*\\)")) - (Info-goto-node "Top" fork)) - ((setq node (Info-get-token (point) "Prev: " "Prev: \\([^,\n\t]*\\)")) - (Info-goto-node node fork)) ;; footnote ((setq node (Info-get-token (point) "(" "\\(([0-9]+)\\)")) (let ((old-point (point)) new-point) --- 3870,3875 ---- *************** *** 3904,3910 **** (progn (goto-char new-point) (setq node t)) ! (setq node nil))))) node)) (defun Info-mouse-follow-link (click) --- 3887,3910 ---- (progn (goto-char new-point) (setq node t)) ! (setq node nil)))) ! ;; menu item: node name ! ((setq node (Info-get-token (point) "\\* +" "\\* +\\([^:]*\\)::")) ! (Info-goto-node node fork)) ! ;; menu item: node name or index entry ! ((Info-get-token (point) "\\* +" "\\* +\\(.*\\): ") ! (beginning-of-line) ! (forward-char 2) ! (setq node (Info-extract-menu-node-name nil (Info-index-node))) ! (Info-goto-node node fork)) ! ((setq node (Info-get-token (point) "Up: " "Up: \\([^,\n\t]*\\)")) ! (Info-goto-node node fork)) ! ((setq node (Info-get-token (point) "Next: " "Next: \\([^,\n\t]*\\)")) ! (Info-goto-node node fork)) ! ((setq node (Info-get-token (point) "File: " "File: \\([^,\n\t]*\\)")) ! (Info-goto-node "Top" fork)) ! ((setq node (Info-get-token (point) "Prev: " "Prev: \\([^,\n\t]*\\)")) ! (Info-goto-node node fork))) node)) (defun Info-mouse-follow-link (click) In GNU Emacs 24.3.50.2 (x86_64-suse-linux-gnu, GTK+ Version 3.4.4) of 2013-06-25 on rosalinde Bzr revision: 113175 lekktu@gmail.com-20130625172019-xiu7eowuwtknvz39 Windowing system distributor `The X.Org Foundation', version 11.0.11203000 System Description: openSUSE 12.2 (x86_64) Configured using: `configure --without-toolkit-scroll-bars CFLAGS=-g3 -O0' Important settings: value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=local locale-coding-system: utf-8-unix default enable-multibyte-characters: t