diff options
| -rw-r--r-- | lisp/info.el | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/lisp/info.el b/lisp/info.el index e3ca18e0ede..386f549d3e2 100644 --- a/lisp/info.el +++ b/lisp/info.el | |||
| @@ -568,8 +568,10 @@ in all the directories in that path." | |||
| 568 | (if (and (stringp file-or-node) (string-match "(.*)" file-or-node)) | 568 | (if (and (stringp file-or-node) (string-match "(.*)" file-or-node)) |
| 569 | file-or-node | 569 | file-or-node |
| 570 | (concat "(" file-or-node ")"))) | 570 | (concat "(" file-or-node ")"))) |
| 571 | (if (zerop (buffer-size)) | 571 | (if (and (zerop (buffer-size)) |
| 572 | (Info-directory)))) | 572 | (null Info-history)) |
| 573 | ;; If we just created the Info buffer, go to the directory. | ||
| 574 | (Info-directory)))) | ||
| 573 | 575 | ||
| 574 | ;;;###autoload | 576 | ;;;###autoload |
| 575 | (defun info-emacs-manual () | 577 | (defun info-emacs-manual () |
| @@ -688,11 +690,12 @@ it says do not attempt further (recursive) error recovery." | |||
| 688 | (setq filename (Info-find-file filename)) | 690 | (setq filename (Info-find-file filename)) |
| 689 | ;; Go into Info buffer. | 691 | ;; Go into Info buffer. |
| 690 | (or (eq major-mode 'Info-mode) (pop-to-buffer "*info*")) | 692 | (or (eq major-mode 'Info-mode) (pop-to-buffer "*info*")) |
| 691 | ;; Record the node we are leaving. | 693 | ;; Record the node we are leaving, if we were in one. |
| 692 | (if (not no-going-back) | 694 | (and (not no-going-back) |
| 693 | (setq Info-history | 695 | Info-current-file |
| 694 | (cons (list Info-current-file Info-current-node (point)) | 696 | (setq Info-history |
| 695 | Info-history))) | 697 | (cons (list Info-current-file Info-current-node (point)) |
| 698 | Info-history))) | ||
| 696 | (Info-find-node-2 filename nodename no-going-back)) | 699 | (Info-find-node-2 filename nodename no-going-back)) |
| 697 | 700 | ||
| 698 | ;;;###autoload | 701 | ;;;###autoload |