From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: bug#20090: 24.4: linking to a position within an info node Date: Sun, 03 Dec 2017 18:27:05 +0100 Message-ID: <87shcrafiu.fsf@nicolasgoaziou.fr> References: <5500BF9E.7010608@gmx.com> <87oanyc7vg.fsf@mail.linkov.net> <5502FB32.9090006@gmx.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52365) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eLY3j-0005ZD-Dy for emacs-orgmode@gnu.org; Sun, 03 Dec 2017 12:28:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eLY3e-00039X-M4 for emacs-orgmode@gnu.org; Sun, 03 Dec 2017 12:28:07 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:34982) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eLY3e-00039R-Hu for emacs-orgmode@gnu.org; Sun, 03 Dec 2017 12:28:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eLY3e-0003S8-6T for emacs-orgmode@gnu.org; Sun, 03 Dec 2017 12:28:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <5502FB32.9090006@gmx.com> (Boruch Baum's message of "Fri, 13 Mar 2015 10:58:58 -0400") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Boruch Baum Cc: 20090@debbugs.gnu.org, Juri Linkov Hello, Boruch Baum writes: > On 03/12/2015 03:50 PM, Juri Linkov wrote: >>> When the org mode manual discusses creating links, it gives an example >>> of linking to an info node (the self-referencing example is >>> `info:org#External' links). The manual continues, at node >>> `info:org#Search options', to describe how specific positions within >>> file links can be directly specified. This does work for links to >>> regular files, but does not work for positions within an info node (eg. >>> line 85 of node x). >> >> Is there an official format for the line numbers in Info cross-references? > I don't know - my assumption was that within emacs, it would be > basically just another type of emacs buffer, and be a legitimate subject > for all elisp commands. > > Your question got me thinking, that emacs may have subtle rendering > quirks, so just now, I opened fresh instances of info buffers in both > very wide and very narrow windows, and they both `fill' to the same line > length, ie the wide window has a lot of right-side white-space, and the > narrow window has lines wrapped. > > Since I submitted the bug report, I've continued trying to get the > feature working, and have been experimenting with the org-mode hooks > `org-create-file-search-functions' and > `org-execute-file-search-functions' to no success. The only, supposedly > working examples I've come across for these functions are [1] and [2]. > If you know of other resources, that could be helpful. Info links are also meant to be exported. Linking to a line number doesn't sound portable. I don't think it should be supported out of the box. In any case, you can implement your own link types, if you need this specific feature. See `org-link-parameters' for details. > One other possible related bug I've found is that when trying to use > org-store-link for a particular line number within an org-file, the link > is created to the most recent header. One can successfully, manually, > hack the created link, replacing the reference to the header with a line > number, in order to be able to navigate directly to the desired line > (all this, for a link target in an org mode file - this was done as a > test, once I came across the original bug) [3]. Please open a new bug report if you think you found a bug. I'm closing this one. Thank you! Regards, -- Nicolas Goaziou 0x80A93738