Fix revert-buffer functionality of Help mode and Info.
authorJuri Linkov <juri@jurta.org>
Thu, 17 Jun 2010 20:56:17 +0000 (23:56 +0300)
committerJuri Linkov <juri@jurta.org>
Thu, 17 Jun 2010 20:56:17 +0000 (23:56 +0300)
commitdbd6da78650014d997dceeecaa4392fc79f6ca8b
treed23eff2c0dd4f6dbad8c9edd9159c1b2eac356ae
parent64eba874f5977eb99d9f1bdaa26010cc5fd9e689
Fix revert-buffer functionality of Help mode and Info.

* lisp/help-mode.el (help-mode): Set buffer-local variable
revert-buffer-function to help-mode-revert-buffer.
(help-mode-revert-buffer): New function.

* lisp/info.el (Info-revert-find-node): Check for major-mode Info-mode
before popping to "*info*" (like in other Info functions).
Keep buffer-name in old-buffer-name.  Keep Info-history-forward in
old-history-forward.  Pop to old-buffer-name or "*info*" to
recreate the killed buffer.  Set Info-history-forward from
old-history-forward.
(Info-breadcrumbs-depth): Add :group and :version.
lisp/ChangeLog
lisp/help-mode.el
lisp/info.el