summaryrefslogtreecommitdiff
path: root/lisp/help-mode.el
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>2004-04-20 20:53:01 +0000
committerRichard M. Stallman <rms@gnu.org>2004-04-20 20:53:01 +0000
commit69e73dd3d3564aebfc13a2edcc44b0d578e48760 (patch)
treed84b21b033e3761c04edee4d219d511bb9a43f28 /lisp/help-mode.el
parent19a151e59be99e7155a1d8f1fb4e7c5c6ca945fc (diff)
downloademacs-69e73dd3d3564aebfc13a2edcc44b0d578e48760.tar.gz
(help-mode-finish): Set help-return-alist first
thing, setting only the entry for the selected window.
Diffstat (limited to 'lisp/help-mode.el')
-rw-r--r--lisp/help-mode.el11
1 files changed, 7 insertions, 4 deletions
diff --git a/lisp/help-mode.el b/lisp/help-mode.el
index 149eebb3d36..4499f5c48cb 100644
--- a/lisp/help-mode.el
+++ b/lisp/help-mode.el
@@ -195,14 +195,17 @@ Commands:
;;;###autoload
(defun help-mode-finish ()
+ (let ((entry (assq (selected-window) view-return-to-alist)))
+ (if entry (setcdr entry (cons (selected-window)
+ help-return-method))
+ (setq view-return-to-alist
+ (cons (cons (selected-window) help-return-method)
+ view-return-to-alist))))
(when (eq major-mode 'help-mode)
;; View mode's read-only status of existing *Help* buffer is lost
;; by with-output-to-temp-buffer.
(toggle-read-only 1)
- (help-make-xrefs (current-buffer)))
- (setq view-return-to-alist
- (list (cons (selected-window) help-return-method))))
-
+ (help-make-xrefs (current-buffer))))
;; Grokking cross-reference information in doc strings and
;; hyperlinking it.