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
e9945264
Commit
e9945264
authored
Jun 29, 1998
by
Richard M. Stallman
Browse files
(Info-find-node): Use byte-to-position.
parent
5bc3ed3e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
lisp/info.el
lisp/info.el
+3
-1
No files found.
lisp/info.el
View file @
e9945264
...
...
@@ -463,7 +463,7 @@ In standalone mode, \\<Info-mode-map>\\[Info-exit] exits Emacs itself."
;; above.
(
setq
guesspos
(
Info-read-subfile
guesspos
))))
(
error
"No such node: %s"
nodename
)))))
(
goto-char
(
max
(
point-min
)
(
-
guesspos
1000
)))
(
goto-char
(
max
(
point-min
)
(
-
(
byte-to-position
guesspos
)
1000
)))
;; Now search from our advised position (or from beg of buffer)
;; to find the actual node.
(
catch
'foo
...
...
@@ -637,6 +637,8 @@ In standalone mode, \\<Info-mode-map>\\[Info-exit] exits Emacs itself."
;; Note that on entry to this function the current-buffer must be the
;; *info* buffer; not the info tags buffer.
;; nodepos should be a byte-position such as is found in
;; the Info file tags table.
(
defun
Info-read-subfile
(
nodepos
)
;; NODEPOS is either a position (in the Info file as a whole,
;; not relative to a subfile) or the name of a subfile.
...
...
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