]> git.eshelyaron.com Git - emacs.git/commit
Don't kill the *info* buffer in `Info-revert-find-node'.
authorJuri Linkov <juri@jurta.org>
Sat, 19 Nov 2011 21:43:40 +0000 (23:43 +0200)
committerJuri Linkov <juri@jurta.org>
Sat, 19 Nov 2011 21:43:40 +0000 (23:43 +0200)
commit3ffbc301c09e6d2a33e3f717d6c55afc9ed6b221
tree16a821d142e6d92bb764c1950ad561310065fa05
parent30c621331d969093bf618ba4fb9a8cc0a14edfe7
Don't kill the *info* buffer in `Info-revert-find-node'.
Add `revert-buffer' to defcustom `Info-hide-node-references'.

* lisp/info.el (Info-hide-note-references): Add `:set' tag to `defcustom'
that calls `revert-buffer' on all Info buffers.
(Info-revert-find-node): Remove let-bindings `old-buffer-name',
`old-history', `old-history-forward'.  Add let-binding
`window-selected'.  Remove calls to `kill-buffer',
`switch-to-buffer' and `Info-mode'.  Set `Info-current-file' to nil
before calling `Info-find-node', so `Info-find-node-2' will reread
the Info file.  Restore window positions only when `window-selected'
is non-nil.

Fixes: debbugs:9915
lisp/ChangeLog
lisp/info.el