Fix following Info cross-references to anchors
commit166ffcb6c7a012ed5f655d7bb0fad97319ad54fc
authorEli Zaretskii <eliz@gnu.org>
Sat, 18 Jul 2015 10:23:22 +0000 (18 13:23 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sat, 18 Jul 2015 10:23:22 +0000 (18 13:23 +0300)
treeb003c93eae7a22c64e78be8e738ec5b0c2b7bc2c
parentd3816bf8ad1fcfed2a32d23216a55850ee4325b5
Fix following Info cross-references to anchors

* lisp/info.el (Info-read-subfile): Add to the returned value the
length of subfile preamble, after converting it to file's byte
offset, as expected by the caller.  Use bufferpos-to-filepos.
(Info-find-node-2): If searching for a node with a
1000-character slop fails, try again with a 10000-character slop,
to account for known bugs in Texinfo 5.0 and 5.1.  (Bug#21055)

* lisp/international/mule-util.el (bufferpos-to-filepos): New
function.
* etc/NEWS: Mention bufferpos-to-filepos.
etc/NEWS
lisp/info.el
lisp/international/mule-util.el