]> git.eshelyaron.com Git - emacs.git/commitdiff
(help-mode-finish): Don't alter the element
authorRichard M. Stallman <rms@gnu.org>
Sun, 6 Mar 2005 18:32:32 +0000 (18:32 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sun, 6 Mar 2005 18:32:32 +0000 (18:32 +0000)
in view-return-to-alist if there already is one.

lisp/help-mode.el

index e9d3561d2516d5b384b6a29b6a60fa91fbad7a9b..8b0284089fc3d1651c7801e4c68b7dce31a01fa4 100644 (file)
@@ -194,8 +194,12 @@ 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))
+       (if entry
+           ;; When entering Help mode from the Help window,
+           ;; such as by following a link, preserve the same
+           ;; meaning for the q command.
+           ;; (setcdr entry (cons (selected-window) help-return-method))
+           nil
          (setq view-return-to-alist
                (cons (cons (selected-window) help-return-method)
                      view-return-to-alist))))