diff options
| author | Richard M. Stallman | 2004-04-20 20:53:01 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2004-04-20 20:53:01 +0000 |
| commit | 69e73dd3d3564aebfc13a2edcc44b0d578e48760 (patch) | |
| tree | d84b21b033e3761c04edee4d219d511bb9a43f28 | |
| parent | 19a151e59be99e7155a1d8f1fb4e7c5c6ca945fc (diff) | |
| download | emacs-69e73dd3d3564aebfc13a2edcc44b0d578e48760.tar.gz emacs-69e73dd3d3564aebfc13a2edcc44b0d578e48760.zip | |
(help-mode-finish): Set help-return-alist first
thing, setting only the entry for the selected window.
| -rw-r--r-- | lisp/help-mode.el | 11 |
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: | |||
| 195 | 195 | ||
| 196 | ;;;###autoload | 196 | ;;;###autoload |
| 197 | (defun help-mode-finish () | 197 | (defun help-mode-finish () |
| 198 | (let ((entry (assq (selected-window) view-return-to-alist))) | ||
| 199 | (if entry (setcdr entry (cons (selected-window) | ||
| 200 | help-return-method)) | ||
| 201 | (setq view-return-to-alist | ||
| 202 | (cons (cons (selected-window) help-return-method) | ||
| 203 | view-return-to-alist)))) | ||
| 198 | (when (eq major-mode 'help-mode) | 204 | (when (eq major-mode 'help-mode) |
| 199 | ;; View mode's read-only status of existing *Help* buffer is lost | 205 | ;; View mode's read-only status of existing *Help* buffer is lost |
| 200 | ;; by with-output-to-temp-buffer. | 206 | ;; by with-output-to-temp-buffer. |
| 201 | (toggle-read-only 1) | 207 | (toggle-read-only 1) |
| 202 | (help-make-xrefs (current-buffer))) | 208 | (help-make-xrefs (current-buffer)))) |
| 203 | (setq view-return-to-alist | ||
| 204 | (list (cons (selected-window) help-return-method)))) | ||
| 205 | |||
| 206 | 209 | ||
| 207 | ;; Grokking cross-reference information in doc strings and | 210 | ;; Grokking cross-reference information in doc strings and |
| 208 | ;; hyperlinking it. | 211 | ;; hyperlinking it. |