aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorJuri Linkov2019-11-27 01:43:49 +0200
committerJuri Linkov2019-11-27 01:43:49 +0200
commitaa89c84e00d8dc85100e6fedab7631c415e6364d (patch)
tree5e81616e1b5f2ee5ca232a10acf63fc62a6997f8 /doc
parentb3c0fb21bd910f5d86490154451cc324ce9ad66b (diff)
downloademacs-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')
-rw-r--r--doc/lispref/display.texi8
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.
276When @code{inhibit-message} is non-@code{nil}, no message will be displayed 276When @code{inhibit-message} is non-@code{nil}, no message will be displayed
277in the echo area, it will only be logged to @samp{*Messages*}. 277in the echo area, it will only be logged to @samp{*Messages*}.
278 278
279If the minibuffer is active, it uses the @code{minibuffer-message}
280function to display the message temporarily at the end of the
281minibuffer (@pxref{Minibuffer Misc}).
282
279If @var{format-string} is @code{nil} or the empty string, 283If @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
281expanded automatically, this brings it back to its normal size. If 285expanded automatically, this brings it back to its normal size.
282the minibuffer is active, this brings the minibuffer contents back
283onto the screen immediately.
284 286
285@example 287@example
286@group 288@group