Commit 55f9feda authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(Info-find-node): Cope better if guesspos is too large.

parent 81e9cc86
......@@ -527,8 +527,13 @@ In standalone mode, \\<Info-mode-map>\\[Info-exit] exits Emacs itself."
(goto-char (setq anchorpos guesspos))
;; Else we may have a node, which we search for:
(goto-char (max (point-min)
(- (byte-to-position guesspos) 1000)))
(let ((guesschar
(or (byte-to-position guesspos)
(if (< (position-bytes (point-max)) guesspos)
(goto-char (max (point-min)
(- guesschar 1000))))
;; Now search from our advised position
;; (or from beg of buffer)
;; to find the actual node.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment