From 69e73dd3d3564aebfc13a2edcc44b0d578e48760 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Tue, 20 Apr 2004 20:53:01 +0000 Subject: [PATCH] (help-mode-finish): Set help-return-alist first thing, setting only the entry for the selected window. --- lisp/help-mode.el | 11 +++++++---- 1 file 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. -- 2.39.5