bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#43813: [BUG] current-message not working with minibuffer-message


From: Eli Zaretskii
Subject: bug#43813: [BUG] current-message not working with minibuffer-message
Date: Mon, 05 Oct 2020 15:42:24 +0300

> From: pinkanon pinkanon <pinkanon.pinkanon@yandex.com>
> Date: Mon, 05 Oct 2020 10:34:49 +0300
> 
> Eval this:
>  
> (progn (minibuffer-message "hello world") (print (format "current message: 
> %s" (current-message))))
>  
> to get "current message: nil" in the *Messages*. If message is used in place 
> of minibuffer message, works
> as expected.

I think your expectations are incorrect, and Emacs works correctly in
this case.

> The reason I think current-message should work with minibuffer-message is due 
> to its docstring: "Return the
> string currently displayed in the echo area, or nil if none."

The echo area and the minibuffer are two different buffers.  They both
use the same mini-window to display their text, but they are not the
same.

> PS Is there some other way to get what's currently displayed in the echo area?

You mean, what is shown in the mini-window?  Is minibuffer-contents
what you want?





reply via email to

[Prev in Thread] Current Thread [Next in Thread]