mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-30 04:10:54 -08:00
(Info-find-node): Don't try to backstep if no history.
(Info-insert-dir): Print sensible error message if no dir node.
This commit is contained in:
parent
ee0c28e343
commit
4db579ab73
1 changed files with 3 additions and 1 deletions
|
|
@ -304,7 +304,7 @@ In standalone mode, \\<Info-mode-map>\\[Info-exit] exits Emacs itself."
|
|||
(Info-select-node)))
|
||||
;; If we did not finish finding the specified node,
|
||||
;; go back to the previous one.
|
||||
(or Info-current-node no-going-back
|
||||
(or Info-current-node no-going-back (null Info-history)
|
||||
(let ((hist (car Info-history)))
|
||||
(setq Info-history (cdr Info-history))
|
||||
(Info-find-node (nth 0 hist) (nth 1 hist) t)
|
||||
|
|
@ -373,6 +373,8 @@ In standalone mode, \\<Info-mode-map>\\[Info-exit] exits Emacs itself."
|
|||
Info-dir-file-attributes))))))
|
||||
(setq dirs (cdr dirs)))
|
||||
|
||||
(or buffers
|
||||
(error "Can't find the info directory node"))
|
||||
;; Distinguish the dir file that comes with Emacs from all the
|
||||
;; others. Yes, that is really what this is supposed to do.
|
||||
;; If it doesn't work, fix it.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue