diff options
| author | Miles Bader | 2000-10-08 01:41:04 +0000 |
|---|---|---|
| committer | Miles Bader | 2000-10-08 01:41:04 +0000 |
| commit | a43709e643cb34622422a35efa477ab7895fd530 (patch) | |
| tree | 147814ca48444b307759d9b9944685c63d075009 | |
| parent | 2a3f00bf5f070a3b41c3b142c7a45593b90c7bb0 (diff) | |
| download | emacs-a43709e643cb34622422a35efa477ab7895fd530.tar.gz emacs-a43709e643cb34622422a35efa477ab7895fd530.zip | |
Document `display-message-or-buffer'.
| -rw-r--r-- | lispref/display.texi | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/lispref/display.texi b/lispref/display.texi index 45e25d72514..eab85054810 100644 --- a/lispref/display.texi +++ b/lispref/display.texi | |||
| @@ -212,6 +212,9 @@ Minibuffer depth is 0. | |||
| 212 | ---------- Echo Area ---------- | 212 | ---------- Echo Area ---------- |
| 213 | @end group | 213 | @end group |
| 214 | @end example | 214 | @end example |
| 215 | |||
| 216 | To automatically display a message in the echo area or in a pop-buffer, | ||
| 217 | depending on its size, use @code{display-message-or-buffer}. | ||
| 215 | @end defun | 218 | @end defun |
| 216 | 219 | ||
| 217 | @tindex with-temp-message | 220 | @tindex with-temp-message |
| @@ -244,6 +247,26 @@ support them, then @code{message-box} uses the echo area, like | |||
| 244 | @code{message}. | 247 | @code{message}. |
| 245 | @end defun | 248 | @end defun |
| 246 | 249 | ||
| 250 | @defun display-message-or-buffer message &optional buffer-name not-this-window frame | ||
| 251 | This function displays the message @var{message}, which may be either a | ||
| 252 | string or a buffer. If it is shorter than the maximum height of the | ||
| 253 | echo area, as defined by @code{max-mini-window-height}, it is displayed | ||
| 254 | in the echo area, using @code{message}. Otherwise, | ||
| 255 | @code{display-buffer} is used to show it in a pop-up buffer. | ||
| 256 | |||
| 257 | Returns either the string shown in the echo area, or when a pop-up | ||
| 258 | buffer is used, the window used to display it. | ||
| 259 | |||
| 260 | If @var{message} is a string, then the optional argument | ||
| 261 | @var{buffer-name} is the name of the buffer used to display it when a | ||
| 262 | pop-up buffer is used, defaulting to @samp{*Message*}. In the case | ||
| 263 | where @var{message} is a string and displayed in the echo area, it is | ||
| 264 | not specified whether the contents are inserted into the buffer anyway. | ||
| 265 | |||
| 266 | The optional arguments @var{not-this-window} and @var{frame} are as for | ||
| 267 | @code{display-buffer}, and only used if a buffer is displayed. | ||
| 268 | @end defun | ||
| 269 | |||
| 247 | @defun current-message | 270 | @defun current-message |
| 248 | This function returns the message currently being displayed in the | 271 | This function returns the message currently being displayed in the |
| 249 | echo area, or @code{nil} if there is none. | 272 | echo area, or @code{nil} if there is none. |