From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.help 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 Message-ID: <87eeafe2s0.fsf@gmx.net> References: <87lf4ovki3.fsf@mbork.pl> <83a6l4tlmt.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40184"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: "help-gnu-emacs@gnu.org" To: Drew Adams Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Aug 27 10:02:06 2021 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mJWoP-000AEX-Ig for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 27 Aug 2021 10:02:05 +0200 Original-Received: from localhost ([::1]:42236 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mJWoN-0002PO-2N for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 27 Aug 2021 04:02:03 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59334) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mJWmK-0002Jw-02 for help-gnu-emacs@gnu.org; Fri, 27 Aug 2021 03:59:56 -0400 Original-Received: from mout.gmx.net ([212.227.17.22]:49871) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mJWmI-0006j7-1e for help-gnu-emacs@gnu.org; Fri, 27 Aug 2021 03:59:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1630051184; bh=T+vlA1Jisyq3cv+IZL1PxLuADFd/NhbmVaPrJZuxXBI=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=gSO6OFVeUMZSIaSUa05O6fWHJDUwRRLm5yRv4YOpzAxiBRjZVbook5HNjbN7iGqbT GZlnXnUP6oy6du/0F3jOBfO0GhS3R9mZ1mH/twGZxBe00xXVsFcGIh0sgR5OZHpllY 9SxJRkhPoQM68HL44fVAV4Qq0BX3xsjsfyw1NpNs= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from strobelfs ([178.1.124.4]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1Mkpex-1mjXah1inf-00mKbA; Fri, 27 Aug 2021 09:59:44 +0200 In-Reply-To: (Drew Adams's message of "Thu, 26 Aug 2021 16:52:02 +0000") X-Provags-ID: V03:K1:w/fzcKsXq+fNajzvbfnpclJBCVRDInTIrdehbP1slTZVomHMG7v I8bzewOZNIc2heuaSnGik/qjqqoUzyyt8H6lcPvaCMbqTKtF1UjGASK1HOALxZG2CBul/Ii 5iY3xU9wgBIbfQtChvQ9ilOcPBXpHOetBN6+cPzn2tuSdO+MLSkMQLtJNoLGltPR2lsJ8ax 6/siODpFItJcWmStyPTmw== X-UI-Out-Filterresults: notjunk:1;V03:K0:lPk5YT/GS2I=:3Ww0CSPizg8lu004+5qQ4N sKj0Y4MwUTqXHjvAA1qs8iVUNifVxjSHooN+tdq71RLfMArWNJTCtYuQvD4MDK7n7ig4QoPYJ Islw2aKaVp2VDRs0oBCBEsPud3nlYjQY8E276qtwPdXESUrgpOBMBTs+5bjqOKuRVTntPNTOc zWsvD1JWUruGlC+vGoyrn2cHBW3u2ScYtKxsYxIaFwRQpQvNUvpG3PPV3JaQg6yZsItQXCyXE nGkg+yT7FGbpVURzQnI4J8EFb9qvuGKQ65qWSjvm4v7rtY4KZ3atCr8utTPCxN//yspXBhizE BsX//WZNjWEYgveI/qXkTPbaXJ5/eYAr7j69ch241SyG/3L94f80Rijytp8I2Iuab+S/G5pqd qFgrNhepvU95FYfjjV0ngLgiDDx8aeyvCqAS9U4JPQKcZyC/lBWucvQgAIym4fTZwYpxwnFsS /qHfa0HuuBry3E/vwbyAgfS81kmKtCEqZIBS9NoEiXe+p1sd1j/37LJwPY97a3l7UZXtoJ8k6 740h0zaI6NadRfwcwbHHW9u10XcYXRwWpEuq11xKV7/6zFoneQejd7+/V9IAovbmHjiGS0dVB RvvpfOswDEg9h61Wct5pO3Hn9Jv0U2NyO5UoUVGwMQA1duSj9Kdihgy5Rm6KDO69CwNZbhfml FvOAYTyXQWLzRyGbK9jZ3tAV3mMEHfzXV4HBWASCNs3czUH4CPOWHWSb+sd/v1TL0uVfW+YIX eKed3aYNz/QSu00GY3xitcNg/2YZz3dauLZMh/3yKR3aGIc6/Lk8w9c1ZAjqEu4FaQopql4K Received-SPF: pass client-ip=212.227.17.22; envelope-from=stephen.berman@gmx.net; helo=mout.gmx.net X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:132776 Archived-At: On Thu, 26 Aug 2021 16:52:02 +0000 Drew Adams wrot= e: >> > 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 anythi= ng >> > 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