diff options
| author | Juri Linkov | 2019-11-27 01:43:49 +0200 |
|---|---|---|
| committer | Juri Linkov | 2019-11-27 01:43:49 +0200 |
| commit | aa89c84e00d8dc85100e6fedab7631c415e6364d (patch) | |
| tree | 5e81616e1b5f2ee5ca232a10acf63fc62a6997f8 /doc/lispref | |
| parent | b3c0fb21bd910f5d86490154451cc324ce9ad66b (diff) | |
| download | emacs-aa89c84e00d8dc85100e6fedab7631c415e6364d.tar.gz emacs-aa89c84e00d8dc85100e6fedab7631c415e6364d.zip | |
message uses minibuffer-message in the active minibuffer (bug#17272 bug#19064)
* doc/lispref/display.texi (Displaying Messages): Explain the
behavior of using minibuffer-message if the minibuffer is active.
* src/editfns.c (Fmessage_in_echo_area): New function with body
copied from Fmessage.
(Fmessage): Call minibuffer-message in the active minibuffer,
otherwise call Fmessage_in_echo_area.
(message-in-echo-area): New variable.
* lisp/isearch.el (isearch--momentary-message, isearch-message):
* lisp/minibuffer.el (minibuffer-message, minibuffer-completion-help):
Use 'message-in-echo-area' instead of 'message' where necessary.
* lisp/autorevert.el (auto-revert-handler):
* lisp/man.el (Man-bgproc-sentinel):
* lisp/subr.el (do-after-load-evaluation):
Revert recent changes that replaced 'message' with 'minibuffer-message'.
This is not needed anymore since 'message' uses 'minibuffer-message'
in the active minibuffer.
Diffstat (limited to 'doc/lispref')
| -rw-r--r-- | doc/lispref/display.texi | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/doc/lispref/display.texi b/doc/lispref/display.texi index ddbae40ac90..1f7cc93c9c4 100644 --- a/doc/lispref/display.texi +++ b/doc/lispref/display.texi | |||
| @@ -276,11 +276,13 @@ followed by a newline. | |||
| 276 | When @code{inhibit-message} is non-@code{nil}, no message will be displayed | 276 | When @code{inhibit-message} is non-@code{nil}, no message will be displayed |
| 277 | in the echo area, it will only be logged to @samp{*Messages*}. | 277 | in the echo area, it will only be logged to @samp{*Messages*}. |
| 278 | 278 | ||
| 279 | If the minibuffer is active, it uses the @code{minibuffer-message} | ||
| 280 | function to display the message temporarily at the end of the | ||
| 281 | minibuffer (@pxref{Minibuffer Misc}). | ||
| 282 | |||
| 279 | If @var{format-string} is @code{nil} or the empty string, | 283 | If @var{format-string} is @code{nil} or the empty string, |
| 280 | @code{message} clears the echo area; if the echo area has been | 284 | @code{message} clears the echo area; if the echo area has been |
| 281 | expanded automatically, this brings it back to its normal size. If | 285 | expanded automatically, this brings it back to its normal size. |
| 282 | the minibuffer is active, this brings the minibuffer contents back | ||
| 283 | onto the screen immediately. | ||
| 284 | 286 | ||
| 285 | @example | 287 | @example |
| 286 | @group | 288 | @group |