all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stephen Berman <stephen.berman@gmx.net>
To: Drew Adams <drew.adams@oracle.com>
Cc: "help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
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	[thread overview]
Message-ID: <87eeafe2s0.fsf@gmx.net> (raw)
In-Reply-To: <SJ0PR10MB54882409885FBB9552E1FB24F3C79@SJ0PR10MB5488.namprd10.prod.outlook.com> (Drew Adams's message of "Thu, 26 Aug 2021 16:52:02 +0000")

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	other threads:[~2021-08-27  7:59 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-26  5:32 Does the command loop even look at the return values of commands executed? Marcin Borkowski
2021-08-26 12:51 ` Eli Zaretskii
2021-08-26 16:52   ` [External] : " Drew Adams
2021-08-27  7:59     ` Stephen Berman [this message]
2021-08-27  8:12       ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-08-27  9:40         ` Stephen Berman
2021-08-27  9:47           ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-08-27 11:38         ` Eli Zaretskii
2021-08-27 16:12       ` Drew Adams
2021-08-26 20:00   ` Marcin Borkowski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87eeafe2s0.fsf@gmx.net \
    --to=stephen.berman@gmx.net \
    --cc=drew.adams@oracle.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.