diff options
| author | Stefan Monnier | 2009-08-19 18:07:07 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2009-08-19 18:07:07 +0000 |
| commit | b3d8e4a025ffb5d45d744f96f9a1d4dcb5988ee1 (patch) | |
| tree | ff23c31ae6192fb80ca8652bdde94bba77a2aa3a | |
| parent | c9829c7025e6e840701ddb0d28c240e018d61c16 (diff) | |
| download | emacs-b3d8e4a025ffb5d45d744f96f9a1d4dcb5988ee1.tar.gz emacs-b3d8e4a025ffb5d45d744f96f9a1d4dcb5988ee1.zip | |
(help-print-return-message): Rename from print-help-return-message.
| -rw-r--r-- | lisp/ChangeLog | 3 | ||||
| -rw-r--r-- | lisp/help.el | 9 |
2 files changed, 8 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index b91a5157800..584cef20192 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2009-08-19 Stefan Monnier <monnier@iro.umontreal.ca> | 1 | 2009-08-19 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 2 | ||
| 3 | * help.el (help-print-return-message): Rename from | ||
| 4 | print-help-return-message. | ||
| 5 | |||
| 3 | * log-view.el (log-view-mode-map): Remove `q' binding, and unreliable | 6 | * log-view.el (log-view-mode-map): Remove `q' binding, and unreliable |
| 4 | cvs-mode-map parent hack. | 7 | cvs-mode-map parent hack. |
| 5 | (log-view-mode): Derive from special-mode. | 8 | (log-view-mode): Derive from special-mode. |
diff --git a/lisp/help.el b/lisp/help.el index b5c778b1df4..e5c07e82439 100644 --- a/lisp/help.el +++ b/lisp/help.el | |||
| @@ -42,7 +42,7 @@ | |||
| 42 | ;; invoking `with-output-to-temp-buffer'. If and only if `help-window' | 42 | ;; invoking `with-output-to-temp-buffer'. If and only if `help-window' |
| 43 | ;; is eq to t, `help-mode-finish' (called by `temp-buffer-setup-hook') | 43 | ;; is eq to t, `help-mode-finish' (called by `temp-buffer-setup-hook') |
| 44 | ;; sets `help-window' to the window selected by `display-buffer'. | 44 | ;; sets `help-window' to the window selected by `display-buffer'. |
| 45 | ;; Exiting `with-help-window' and calling `print-help-return-message' | 45 | ;; Exiting `with-help-window' and calling `help-print-return-message' |
| 46 | ;; reset `help-window' to nil. | 46 | ;; reset `help-window' to nil. |
| 47 | (defvar help-window nil | 47 | (defvar help-window nil |
| 48 | "Window chosen for displaying help.") | 48 | "Window chosen for displaying help.") |
| @@ -137,7 +137,8 @@ This is a list | |||
| 137 | (WINDOW . quit-window) do quit-window, then select WINDOW. | 137 | (WINDOW . quit-window) do quit-window, then select WINDOW. |
| 138 | (WINDOW BUF START POINT) display BUF at START, POINT, then select WINDOW.") | 138 | (WINDOW BUF START POINT) display BUF at START, POINT, then select WINDOW.") |
| 139 | 139 | ||
| 140 | (defun print-help-return-message (&optional function) | 140 | (define-obsolete-function-alias 'print-help-return-message 'help-print-return-message "23.2") |
| 141 | (defun help-print-return-message (&optional function) | ||
| 141 | "Display or return message saying how to restore windows after help command. | 142 | "Display or return message saying how to restore windows after help command. |
| 142 | This function assumes that `standard-output' is the help buffer. | 143 | This function assumes that `standard-output' is the help buffer. |
| 143 | It computes a message, and applies the optional argument FUNCTION to it. | 144 | It computes a message, and applies the optional argument FUNCTION to it. |
| @@ -1073,7 +1074,7 @@ of WINDOW." | |||
| 1073 | (help-window-display-message | 1074 | (help-window-display-message |
| 1074 | (if reuse | 1075 | (if reuse |
| 1075 | ;; Offer `display-buffer' for consistency with | 1076 | ;; Offer `display-buffer' for consistency with |
| 1076 | ;; `print-help-return-message'. This is hardly TRT when | 1077 | ;; `help-print-return-message'. This is hardly TRT when |
| 1077 | ;; the other window and the selected window display the | 1078 | ;; the other window and the selected window display the |
| 1078 | ;; same buffer but has been handled this way ever since. | 1079 | ;; same buffer but has been handled this way ever since. |
| 1079 | "Type \\[display-buffer] RET to restore the other window" | 1080 | "Type \\[display-buffer] RET to restore the other window" |
| @@ -1202,7 +1203,7 @@ window itself is specified by the variable `help-window'." | |||
| 1202 | ;; (4) A marker (`help-window-point-marker') to move point in the help | 1203 | ;; (4) A marker (`help-window-point-marker') to move point in the help |
| 1203 | ;; window to an arbitrary buffer position. | 1204 | ;; window to an arbitrary buffer position. |
| 1204 | 1205 | ||
| 1205 | ;; Note: It's usually always wrong to use `print-help-return-message' in | 1206 | ;; Note: It's usually always wrong to use `help-print-return-message' in |
| 1206 | ;; the body of `with-help-window'. | 1207 | ;; the body of `with-help-window'. |
| 1207 | (defmacro with-help-window (buffer-name &rest body) | 1208 | (defmacro with-help-window (buffer-name &rest body) |
| 1208 | "Display buffer BUFFER-NAME in a help window evaluating BODY. | 1209 | "Display buffer BUFFER-NAME in a help window evaluating BODY. |