diff options
| author | Martin Rudalics | 2014-02-28 10:10:55 +0100 |
|---|---|---|
| committer | Martin Rudalics | 2014-02-28 10:10:55 +0100 |
| commit | 9dda75adcd4e7e3961349e52a9e82c66dda968d6 (patch) | |
| tree | d2cb93f337a6e0ca091bb9f3533c027b4766e844 /lisp/help.el | |
| parent | 8a73034ea9b80b2badfdcd5e473fddec8bc0ec6a (diff) | |
| download | emacs-9dda75adcd4e7e3961349e52a9e82c66dda968d6.tar.gz emacs-9dda75adcd4e7e3961349e52a9e82c66dda968d6.zip | |
Revert recent with-temp-buffer-window change (Bug#16816, Bug#16882).
* window.el (with-temp-buffer-window): Revert change from
2014-02-21. Suggested by Thierry Volpiatto
<thierry.volpiatto@gmail.com>. Fix doc-string based on a
suggestion by Nicolas Richard <theonewiththeevillook@yahoo.fr>.
* help.el (with-help-window): Fix doc-string.
Diffstat (limited to 'lisp/help.el')
| -rw-r--r-- | lisp/help.el | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/lisp/help.el b/lisp/help.el index f00accc370c..1e3d41eb88a 100644 --- a/lisp/help.el +++ b/lisp/help.el | |||
| @@ -1194,9 +1194,14 @@ Return VALUE." | |||
| 1194 | ;; Note: It's usually always wrong to use `help-print-return-message' in | 1194 | ;; Note: It's usually always wrong to use `help-print-return-message' in |
| 1195 | ;; the body of `with-help-window'. | 1195 | ;; the body of `with-help-window'. |
| 1196 | (defmacro with-help-window (buffer-name &rest body) | 1196 | (defmacro with-help-window (buffer-name &rest body) |
| 1197 | "Display buffer with name BUFFER-NAME in a help window evaluating BODY. | 1197 | "Display buffer with name BUFFER-NAME in a help window. |
| 1198 | Select help window if the current value of the user option | 1198 | Evaluate the forms in BODY with the buffer specified by |
| 1199 | `help-window-select' says so. Return last value in BODY." | 1199 | BUFFER-NAME current, put that buffer in `help-mode', display the |
| 1200 | buffer in a window (see `with-temp-buffer-window' for details) | ||
| 1201 | and issue a message how to deal with that \"help\" window when | ||
| 1202 | it's no more needed. Select the help window if the current value | ||
| 1203 | of the user option `help-window-select' says so. Return last | ||
| 1204 | value in BODY." | ||
| 1200 | (declare (indent 1) (debug t)) | 1205 | (declare (indent 1) (debug t)) |
| 1201 | `(progn | 1206 | `(progn |
| 1202 | ;; Make `help-window-point-marker' point nowhere. The only place | 1207 | ;; Make `help-window-point-marker' point nowhere. The only place |