diff options
| -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. |