]> git.eshelyaron.com Git - emacs.git/commitdiff
(Info-revert-find-node): Check for Info-current-file
authorJuri Linkov <juri@jurta.org>
Tue, 17 Jan 2006 02:07:44 +0000 (02:07 +0000)
committerJuri Linkov <juri@jurta.org>
Tue, 17 Jan 2006 02:07:44 +0000 (02:07 +0000)
before preserving new-history.

lisp/info.el

index 8bd266cffc0ebeeed2eccde5f5a708a35278547e..61d5974107828b92fd461125d031745a8c16e870 100644 (file)
@@ -731,7 +731,8 @@ is preserved, if possible."
        (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)