From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#14717: 24.3.50; Info-try-follow-nearest-node misses some footnotes Date: Thu, 27 Jun 2013 02:39:07 +0300 Organization: JURTA Message-ID: <8738s4jvc4.fsf@mail.jurta.org> References: <87vc52599u.fsf@rosalinde.fritz.box> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1372290070 4787 80.91.229.3 (26 Jun 2013 23:41:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 26 Jun 2013 23:41:10 +0000 (UTC) Cc: 14717@debbugs.gnu.org To: Stephen Berman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jun 27 01:41:10 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 1UrzKm-0001Kz-Gy for geb-bug-gnu-emacs@m.gmane.org; Thu, 27 Jun 2013 01:41:08 +0200 Original-Received: from localhost ([::1]:45219 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UrzKm-0001fy-15 for geb-bug-gnu-emacs@m.gmane.org; Wed, 26 Jun 2013 19:41:08 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35485) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UrzKh-0001ff-Dt for bug-gnu-emacs@gnu.org; Wed, 26 Jun 2013 19:41:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UrzKg-0002S5-Fm for bug-gnu-emacs@gnu.org; Wed, 26 Jun 2013 19:41:03 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:49593) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UrzKg-0002S0-D5 for bug-gnu-emacs@gnu.org; Wed, 26 Jun 2013 19:41:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1UrzKf-0007jT-On for bug-gnu-emacs@gnu.org; Wed, 26 Jun 2013 19:41:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 26 Jun 2013 23:41:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14717 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 14717-submit@debbugs.gnu.org id=B14717.137229004129627 (code B ref 14717); Wed, 26 Jun 2013 23:41:01 +0000 Original-Received: (at 14717) by debbugs.gnu.org; 26 Jun 2013 23:40:41 +0000 Original-Received: from localhost ([127.0.0.1]:43909 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UrzKJ-0007hU-4D for submit@debbugs.gnu.org; Wed, 26 Jun 2013 19:40:40 -0400 Original-Received: from ps18281.dreamhost.com ([69.163.218.105]:40105 helo=ps18281.dreamhostps.com) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UrzKF-0007gt-UK for 14717@debbugs.gnu.org; Wed, 26 Jun 2013 19:40:37 -0400 Original-Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 78517258B9E915; Wed, 26 Jun 2013 16:40:34 -0700 (PDT) In-Reply-To: <87vc52599u.fsf@rosalinde.fritz.box> (Stephen Berman's message of "Tue, 25 Jun 2013 20:34:53 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (x86_64-pc-linux-gnu) 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:75622 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 following patch makes the footnote search and > hence jumping to the footnote in that node succeed Thanks, your patch correctly fixes the bug, I recommend to commit it. BTW, if you are interested what I'm trying to do in bug#14670 where I renamed the text property of footnotes from `link' to `shr-url' is to support shr-url links in Info. The value of the text properly `shr-url' is the target of the link. The problem is how to address a footnote? Maybe add a function that finds a footnote. But I'm afraid that supporting an arbitrary function on the text properly `shr-url' is too unsafe. So `shr-url' should contain only a string. The question is in what format to specify a link to a footnote. Currently it has the value `t'. Perhaps as a string it could contain a line number of the footnote like "(elisp) Using Interactive (line 42)".