From mboxrd@z Thu Jan 1 00:00:00 1970 From: Boruch Baum Subject: bug#20090: 24.4: linking to a position within an info node Date: Fri, 13 Mar 2015 10:58:58 -0400 Message-ID: <5502FB32.9090006@gmx.com> References: <5500BF9E.7010608@gmx.com> <87oanyc7vg.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="19Eg6oC6pLs20gvcIJOHhKj09pDjgIffN" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35441) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YWR4M-00059l-Of for emacs-orgmode@gnu.org; Fri, 13 Mar 2015 11:00:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YWR4H-00081a-JB for emacs-orgmode@gnu.org; Fri, 13 Mar 2015 11:00:10 -0400 Received: from debbugs.gnu.org ([140.186.70.43]:46714) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YWR4H-0007z8-Fd for emacs-orgmode@gnu.org; Fri, 13 Mar 2015 11:00:05 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YWR4G-0007aI-KT for emacs-orgmode@gnu.org; Fri, 13 Mar 2015 11:00:04 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <87oanyc7vg.fsf@mail.linkov.net> 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Juri Linkov Cc: 20090@debbugs.gnu.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --19Eg6oC6pLs20gvcIJOHhKj09pDjgIffN Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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= =2E >> line 85 of node x). >=20 > Is there an official format for the line numbers in Info cross-referenc= es? 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. 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]. [1] https://stackoverflow.com/questions/10681766/emacs-org-mode-textual-refer= ence-to-a-fileline [2] http://www.emacswiki.org/emacs/.emacs-DominiqueQuatravaux.el [3] info:org#Search options >=20 > (info "(texinfo) Printing Indices & Menus") documents the format of > line numbers only in the index, not in the cross-references: >=20 > * In Info output, `@printindex' produces a special menu containing > the line number of the entry, relative to the start of the node. > Info readers can use this to go to the exact line of an entry, not= > just the containing node. (Older Info readers will just go to the= > node.) Here's an example: >=20 > * First index entry: Top. (line 7) >=20 > The actual number of spaces is variable, to right-justify the line= > number; it's been reduced here to make the line fit in the printed= > manual. >=20 > The Info reader already supports this format in the index. >=20 --=20 hkp://keys.gnupg.net CA45 09B5 5351 7C11 A9D1 7286 0036 9E45 1595 8BC0 --19Eg6oC6pLs20gvcIJOHhKj09pDjgIffN Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJVAvsyAAoJEDvrUfDmCx9LlIcP/iB9XjsSF6+Q2RjKZBpDKc8D EIw2SpMd49tvKSh0WyzxmGCynJ5aOF33o3ydJinzzUcesrTufl/0Kfo7+eQMCC0J Vn0x8V3Sg8F8080UoGpZqqI1arb2apJMiwRLp3gncixDf60rw5p4EW3zhnr6Jwkn ieV2qgfmFiMn6eNPg+ao0Okt4qIP/mY4WeuEdPHIsMXxwxOTd93kylJ9W9tadAHN 1lahTOneMoieeCCDyWaff2u5IgatcOavv47PuOh0CAL2V5XRxZARjudi3NE7kEoO 8hF8XbliLVXVlp82S+jvIeKsxoV6GDzpcIMTFkONJsfuPUnZgOuII66dd3XRpMIZ D+RAiqiVHJIhyy4KmEnSUoDxiEN67ot8cAWGfOFEF0IkCROR2MVddnkJVB4frw5W /7UVRKWE89SylVUu17fEJYhp9WxdR5wUjsi5Ihh0qjO5hDhMEfkRrfZIAt/z8Cty i+EVRx9gZYaLiT1jUx2CCmvS1QFoMBW3rq0EQ7O5RUujVfepNz2Zyg8ifooeO+dM x91P5K1RAEVnwZij+ejHWdX0G2hV2XZgdb+GTnRQUP5FmCZnS/BGvOUlqwn0/vNh cLAZLtoIDsv6KTlBjvTtqqdLUQGdlcf5Ck/ym2IfiAygmD86XwCz6+1BoAT1767f BciNb+0ch8tm5cBI86JE =YsU1 -----END PGP SIGNATURE----- --19Eg6oC6pLs20gvcIJOHhKj09pDjgIffN--