Commit b0dd5bf5 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(Info-find-node): Don't record previous node if have none.

(info): Go to directory only if history is empty.
parent bf2c1089
......@@ -568,8 +568,10 @@ in all the directories in that path."
(if (and (stringp file-or-node) (string-match "(.*)" file-or-node))
(concat "(" file-or-node ")")))
(if (zerop (buffer-size))
(if (and (zerop (buffer-size))
(null Info-history))
;; If we just created the Info buffer, go to the directory.
(defun info-emacs-manual ()
......@@ -688,11 +690,12 @@ it says do not attempt further (recursive) error recovery."
(setq filename (Info-find-file filename))
;; Go into Info buffer.
(or (eq major-mode 'Info-mode) (pop-to-buffer "*info*"))
;; Record the node we are leaving.
(if (not no-going-back)
(setq Info-history
(cons (list Info-current-file Info-current-node (point))
;; Record the node we are leaving, if we were in one.
(and (not no-going-back)
(setq Info-history
(cons (list Info-current-file Info-current-node (point))
(Info-find-node-2 filename nodename no-going-back))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment