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
635173de
Commit
635173de
authored
Apr 06, 1999
by
Richard M. Stallman
Browse files
(Info-find-node): Check for an anchor at the
proper place, before reading an indirect file.
parent
acc9e99d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
lisp/info.el
lisp/info.el
+5
-4
No files found.
lisp/info.el
View file @
635173de
...
...
@@ -475,6 +475,7 @@ In standalone mode, \\<Info-mode-map>\\[Info-exit] exits Emacs itself."
(
if
(
marker-position
Info-tag-table-marker
)
(
let
(
found-in-tag-table
found-anchor
found-mode
(
m
Info-tag-table-marker
))
(
save-excursion
...
...
@@ -484,7 +485,9 @@ In standalone mode, \\<Info-mode-map>\\[Info-exit] exits Emacs itself."
;; Search tag table
(
setq
found-in-tag-table
(
re-search-forward
regexp
nil
t
))
(
re-search-forward
regexp
nil
t
)
found-anchor
(
string-equal
"Ref:"
(
match-string
1
)))
(
if
found-in-tag-table
(
setq
guesspos
(
1+
(
read
(
current-buffer
)))))
(
setq
found-mode
major-mode
))
...
...
@@ -503,9 +506,7 @@ In standalone mode, \\<Info-mode-map>\\[Info-exit] exits Emacs itself."
(
setq
guesspos
(
Info-read-subfile
guesspos
)))))
;; Handle anchor
(
if
(
and
found-in-tag-table
(
string-equal
"Ref:"
(
match-string
1
)))
(
goto-char
guesspos
)
(
if
found-anchor
(
goto-char
guesspos
)
;; Else we may have a node, which we search for:
(
goto-char
(
max
(
point-min
)
...
...
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