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

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

Re: [External] : Re: Does the command loop even look at the return value


From: Stephen Berman
Subject: Re: [External] : Re: Does the command loop even look at the return values of commands executed?
Date: Fri, 27 Aug 2021 09:59:43 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

On Thu, 26 Aug 2021 16:52:02 +0000 Drew Adams <drew.adams@oracle.com> wrote:

>> > I am pretty sure that the command loop discards anything returned by
>> > a command invoked via a keybinding or M-x, but I couldn't find anything
>> > about it in the Elisp reference.  Is that true?  Is it documented
>> > anywhere?
>>
>> Yes, we ignore the value returned by commands.  No, it isn't
>> documented, AFAICT.
>
> Just for info, in case it's somehow relevant to
> Marcin: There is global variable `values'.
> (elisp) node `Eval' tells us:
>
> ___
> Variable: values
>   The value of this variable is a list of the values returned by all
>   the expressions that were read, evaluated, and printed from buffers
>   (including the minibuffer) by the standard Emacs commands which do
>   this.
[...]

In Emacs 28 the doc string of `values' says "This variable is obsolete
as of Emacs 28.1 and should not be used."  It's also mentioned in Emacs
28 NEWS, but the Emacs 28 Elisp manual hasn't been updated on this yet.

Steve Berman



reply via email to

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