Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
55f9feda
Commit
55f9feda
authored
Sep 14, 1999
by
Richard M. Stallman
Browse files
(Info-find-node): Cope better if guesspos is too large.
parent
81e9cc86
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
lisp/info.el
lisp/info.el
+7
-2
No files found.
lisp/info.el
View file @
55f9feda
...
...
@@ -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
)
(
point-max
)
(
point-min
)))))
(
goto-char
(
max
(
point-min
)
(
-
guesschar
1000
))))
;; Now search from our advised position
;; (or from beg of buffer)
;; to find the actual node.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment