[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: Drew Adams
Subject: RE: [External] : messages to *Messages* without appearing in mini-buffer?
Date: Fri, 12 Nov 2021 01:47:42 +0000

> >>> (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.

<<attachment: winmail.dat>>

reply via email to

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