[Top][All Lists]

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

Re: [External] : messages to *Messages* without appearing in mini-buffer

From: Emanuel Berg
Subject: Re: [External] : messages to *Messages* without appearing in mini-buffer?
Date: Fri, 12 Nov 2021 04:10:11 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Drew Adams wrote:

>>>>> (let ((inhibit-message  t))
>>>>>   (message "Msg only to be logged in *Messages*"))
>>>> Doesn't work for me?
>>>> I see it.
>>>> Dont know if message displays it or if it is displayed because
>>>> it is returned.
>>> What you see is the printed return value of
>>> the sexp you asked to evaluate-AND-PRINT.
>>> Try `eval-region' on the sexp instead.
>>> Or put it in a defun and invoke the function in a way that
>>> doesn't also print its return value.
>> (progn
>>   (message "But then why don't you just do that?")
>>   1)
> Because you don't need to do that, to prevent `message' from
> displaying in the echo area.
> Printing a return value from evaluating a sexp has nothing
> to do with the question. See the Subject line.

Eheh ... is it off-topic?

underground experts united

reply via email to

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