changeset 68227:51ca63f92c59

(Info-revert-find-node): Check for Info-current-file before preserving new-history.
author Juri Linkov <juri@jurta.org>
date Tue, 17 Jan 2006 02:07:44 +0000
parents 8cac036adedc
children badae83666f6
files lisp/info.el
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/info.el	Tue Jan 17 01:43:00 2006 +0000
+++ b/lisp/info.el	Tue Jan 17 02:07:44 2006 +0000
@@ -731,7 +731,8 @@
 	(pline        (count-lines (point-min) (line-beginning-position)))
 	(wline        (count-lines (point-min) (window-start)))
 	(old-history  Info-history)
-	(new-history  (list Info-current-file Info-current-node (point))))
+	(new-history  (and Info-current-file
+			   (list Info-current-file Info-current-node (point)))))
     (kill-buffer (current-buffer))
     (Info-find-node filename nodename)
     (setq Info-history old-history)