diff options
| author | Karl Heuer | 1994-04-07 03:11:50 +0000 |
|---|---|---|
| committer | Karl Heuer | 1994-04-07 03:11:50 +0000 |
| commit | 4db579ab73cd1bf0ca9624fc54b04f1104aac799 (patch) | |
| tree | 47c34167b923162b03430ee9f9e775ad97aae627 | |
| parent | ee0c28e3433289ab5bfb0e9daa950cc388b26712 (diff) | |
| download | emacs-4db579ab73cd1bf0ca9624fc54b04f1104aac799.tar.gz emacs-4db579ab73cd1bf0ca9624fc54b04f1104aac799.zip | |
(Info-find-node): Don't try to backstep if no history.
(Info-insert-dir): Print sensible error message if no dir node.
| -rw-r--r-- | lisp/info.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/info.el b/lisp/info.el index 0fe52e844e0..ea39ddd19c5 100644 --- a/lisp/info.el +++ b/lisp/info.el | |||
| @@ -304,7 +304,7 @@ In standalone mode, \\<Info-mode-map>\\[Info-exit] exits Emacs itself." | |||
| 304 | (Info-select-node))) | 304 | (Info-select-node))) |
| 305 | ;; If we did not finish finding the specified node, | 305 | ;; If we did not finish finding the specified node, |
| 306 | ;; go back to the previous one. | 306 | ;; go back to the previous one. |
| 307 | (or Info-current-node no-going-back | 307 | (or Info-current-node no-going-back (null Info-history) |
| 308 | (let ((hist (car Info-history))) | 308 | (let ((hist (car Info-history))) |
| 309 | (setq Info-history (cdr Info-history)) | 309 | (setq Info-history (cdr Info-history)) |
| 310 | (Info-find-node (nth 0 hist) (nth 1 hist) t) | 310 | (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." | |||
| 373 | Info-dir-file-attributes)))))) | 373 | Info-dir-file-attributes)))))) |
| 374 | (setq dirs (cdr dirs))) | 374 | (setq dirs (cdr dirs))) |
| 375 | 375 | ||
| 376 | (or buffers | ||
| 377 | (error "Can't find the info directory node")) | ||
| 376 | ;; Distinguish the dir file that comes with Emacs from all the | 378 | ;; Distinguish the dir file that comes with Emacs from all the |
| 377 | ;; others. Yes, that is really what this is supposed to do. | 379 | ;; others. Yes, that is really what this is supposed to do. |
| 378 | ;; If it doesn't work, fix it. | 380 | ;; If it doesn't work, fix it. |