diff options
| author | Juri Linkov <juri@jurta.org> | 2006-01-17 02:07:44 +0000 |
|---|---|---|
| committer | Juri Linkov <juri@jurta.org> | 2006-01-17 02:07:44 +0000 |
| commit | 96639c897090f919cebda07796ccd11ad0094565 (patch) | |
| tree | 360897baed63b9eb6339549f04304cc0376da7fc | |
| parent | 84bf6ad84efc1975c45540c203480811dcbb7b26 (diff) | |
| download | emacs-96639c897090f919cebda07796ccd11ad0094565.tar.gz | |
(Info-revert-find-node): Check for Info-current-file
before preserving new-history.
| -rw-r--r-- | lisp/info.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/info.el b/lisp/info.el index 8bd266cffc0..61d59741078 100644 --- a/lisp/info.el +++ b/lisp/info.el @@ -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) |
