diff options
| author | Eli Zaretskii | 2005-12-03 11:52:23 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2005-12-03 11:52:23 +0000 |
| commit | a8e7142cdde1f3b596681c6e28bd9fcd6726dea3 (patch) | |
| tree | 0ae7eb57b7bbc652d8f932f91887c00935507aea | |
| parent | 6faed041c71e6ef956fdfccacf0417bcc132d48f (diff) | |
| download | emacs-a8e7142cdde1f3b596681c6e28bd9fcd6726dea3.tar.gz emacs-a8e7142cdde1f3b596681c6e28bd9fcd6726dea3.zip | |
(print-help-return-message): If pop-up-frames is non-nil, set up
help-return-method to delete the help window and, possibly, its frame as well. Doc fix.
(help-return-method): Doc fix.
| -rw-r--r-- | lisp/ChangeLog | 7 | ||||
| -rw-r--r-- | lisp/help.el | 11 |
2 files changed, 15 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index d9deff1cdea..687b89d3906 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2005-12-03 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * help.el (print-help-return-message): If pop-up-frames is | ||
| 4 | non-nil, set up help-return-method to delete the help window and, | ||
| 5 | possibly, its frame as well. Doc fix. | ||
| 6 | (help-return-method): Doc fix. | ||
| 7 | |||
| 1 | 2005-12-03 Martin Rudalics <rudalics@gmx.at> (tiny change) | 8 | 2005-12-03 Martin Rudalics <rudalics@gmx.at> (tiny change) |
| 2 | 9 | ||
| 3 | * emacs-lisp/lisp-mode.el (lisp-imenu-generic-expression): Fix bug | 10 | * emacs-lisp/lisp-mode.el (lisp-imenu-generic-expression): Fix bug |
diff --git a/lisp/help.el b/lisp/help.el index cd95af0e866..067e02d5cef 100644 --- a/lisp/help.el +++ b/lisp/help.el | |||
| @@ -111,7 +111,8 @@ | |||
| 111 | (defvar help-return-method nil | 111 | (defvar help-return-method nil |
| 112 | "What to do to \"exit\" the help buffer. | 112 | "What to do to \"exit\" the help buffer. |
| 113 | This is a list | 113 | This is a list |
| 114 | (WINDOW . t) delete the selected window, go to WINDOW. | 114 | (WINDOW . t) delete the selected window (and possibly its frame, |
| 115 | see `quit-window' and `View-quit'), go to WINDOW. | ||
| 115 | (WINDOW . quit-window) do quit-window, then select WINDOW. | 116 | (WINDOW . quit-window) do quit-window, then select WINDOW. |
| 116 | (WINDOW BUF START POINT) display BUF at START, POINT, then select WINDOW.") | 117 | (WINDOW BUF START POINT) display BUF at START, POINT, then select WINDOW.") |
| 117 | 118 | ||
| @@ -119,10 +120,14 @@ This is a list | |||
| 119 | "Display or return message saying how to restore windows after help command. | 120 | "Display or return message saying how to restore windows after help command. |
| 120 | This function assumes that `standard-output' is the help buffer. | 121 | This function assumes that `standard-output' is the help buffer. |
| 121 | It computes a message, and applies the optional argument FUNCTION to it. | 122 | It computes a message, and applies the optional argument FUNCTION to it. |
| 122 | If FUNCTION is nil, it applies `message', thus displaying the message." | 123 | If FUNCTION is nil, it applies `message', thus displaying the message. |
| 124 | In addition, this function sets up `help-return-method', which see, that | ||
| 125 | specifies what to do when the user exits the help buffer." | ||
| 123 | (and (not (get-buffer-window standard-output)) | 126 | (and (not (get-buffer-window standard-output)) |
| 124 | (let ((first-message | 127 | (let ((first-message |
| 125 | (cond ((special-display-p (buffer-name standard-output)) | 128 | (cond ((or |
| 129 | pop-up-frames | ||
| 130 | (special-display-p (buffer-name standard-output))) | ||
| 126 | (setq help-return-method (cons (selected-window) t)) | 131 | (setq help-return-method (cons (selected-window) t)) |
| 127 | ;; If the help output buffer is a special display buffer, | 132 | ;; If the help output buffer is a special display buffer, |
| 128 | ;; don't say anything about how to get rid of it. | 133 | ;; don't say anything about how to get rid of it. |