From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.help Subject: RE: [External] : Re: Does the command loop even look at the return values of commands executed? Date: Thu, 26 Aug 2021 16:52:02 +0000 Message-ID: References: <87lf4ovki3.fsf@mbork.pl> <83a6l4tlmt.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4863"; mail-complaints-to="usenet@ciao.gmane.io" To: "help-gnu-emacs@gnu.org" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Aug 26 18:53:21 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 1mJIcz-00011p-1k for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 26 Aug 2021 18:53:21 +0200 Original-Received: from localhost ([::1]:57542 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mJIcx-0006WP-4N for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 26 Aug 2021 12:53:19 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42388) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mJIbv-0006W3-O6 for help-gnu-emacs@gnu.org; Thu, 26 Aug 2021 12:52:19 -0400 Original-Received: from mx0b-00069f02.pphosted.com ([205.220.177.32]:37994) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mJIbs-0000r7-5A for help-gnu-emacs@gnu.org; Thu, 26 Aug 2021 12:52:15 -0400 Original-Received: from pps.filterd (m0246631.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.16.1.2/8.16.0.43) with SMTP id 17QExj7L010714 for ; Thu, 26 Aug 2021 16:52:05 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2021-07-09; bh=dkuqRvVuEuA8zM4F3YMh3VqMjh/ftGqV3JdQLVNj6r4=; b=UhDEkv5XlAVdN9UrO5UQIi09h+NrkZtJNsGhN1Wxdau0uParILcFQBVruwMSHpSqjOWK OQ9Onv7dG1UV5Iqu5NznWsFFlIvwHdl5Vu651+J2DRuBUC8I+OF0msmyIgYQZrtbXvOV vlfry0LT37ccAU3+64bAC1+iQgCnMWbpGRd1FiVJ3EwJ/1UZNj3Y2/24YNG9IelUgWqt x8VdifFWh8iSkDuNIodhVHN47V2fFjFLXHAUWKA1H8ZyQWfPMGFA8XPi201J7YhSzGz1 3Cap7I72woDkxY80ful44ic4XCHDFFC5ddcOXLgy+4rSlwe7bQw+8zWGqhjq50rTH+Zc BQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2020-01-29; bh=dkuqRvVuEuA8zM4F3YMh3VqMjh/ftGqV3JdQLVNj6r4=; b=T5MAmVtRzdcAQBO8gXBfdmb0Ws6cQfTHJqfOQytA+dgDq/Kw9odVqv7uf11XPm07epde iFH8PJW9qWVtZ7DQ+A8Bx86TyJ1L/EihAjbUsjW/8TwDqf52dhCtepV9kmXW+nUngayE 5YAqo/cFzLCi7Y9c2d+Pn1pWhgzQpSydgsH2sI5FsIOqjhUvwuDu6/XxIb/gEQKtP2YF dRyyl7P9biqJws2NKp7ilFRQwTREQCfKuzdYmtnCpMi5lcdFNQK0SZGYJmQOM82d1Y2t kj8ESxlUcBb0y4iqBSkC+kB2x+xIG2t5/STZlNy4OBG9MKZoFvwquFncbs/zt8pU8HZK uQ== Original-Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by mx0b-00069f02.pphosted.com with ESMTP id 3ap4eksm62-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Thu, 26 Aug 2021 16:52:05 +0000 Original-Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 17QGpUFe082331 for ; Thu, 26 Aug 2021 16:52:04 GMT Original-Received: from nam12-dm6-obe.outbound.protection.outlook.com (mail-dm6nam12lp2169.outbound.protection.outlook.com [104.47.59.169]) by aserp3030.oracle.com with ESMTP id 3ajqhjwuvv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Thu, 26 Aug 2021 16:52:04 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EfFlt6l/IAUyUPcGAt8F+WXIwL+NiZLPaifhJcBnbkHHhtlCuLDorqg/O2tfmcDiJ+UHgLwl9hEZm35oO4+EqKhwx4xzNKOHdqMNTmVFE6jaBbLQPRcJukYma23wn3CRH9X07FrRmDB2rUAtF+tQLcuDCbb382F05CzBqmXE9mSXDIEeojYq9rxXZqOO4Jxl7uWwwlo2Gd8xgufgvuWr4B+ENcxlu0NLanVLuaIYzc42VxEWdw8lPMfXptceEh+v5IKcp0/67l9YjwIHkktitDNUb6YkEyTVCmrCcZgDc9JVvDPx/IOvnC3jNeFpsk5WfpeImfzXXFz8QYEP2TjEeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=dkuqRvVuEuA8zM4F3YMh3VqMjh/ftGqV3JdQLVNj6r4=; b=YyDTVP9pPe4otqOoxm7oXEDNfhqkohRsOQoQkXexxR5Xt5PuYjGrOoQ5NzxhO/WzMMpLcEK/wZhstW8XLU/9xHPfOS/RS12P3v3IfFl6vjxiqjBtOCdgebfjL+PQYaJFJjB1tAbiT8emfeB6XoUPKx36IahDSTckIz37NFZFIYVfZ2VtnMV9Sv0fLoIT5T7YeasqFkj6drSCz7y2nFLHmUPb4KROeJfRAE1sbRo/OwLhbkAbSDVKldrMsLj4BrXs2+dvxYkBKh08U4+lN7mjKD1qmP+JaDNdum5iCicNpDlK+tRVAjr8OaAMLP69PgYp21qE0x5F2LlKgzdakg9dSQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=dkuqRvVuEuA8zM4F3YMh3VqMjh/ftGqV3JdQLVNj6r4=; b=FsxIj4065TzENprcUzviLFJOiiy29h9WC/b3cRiCblu2qlbVOmhXl7vAd9+jP8SDtkvceniQNJ95iCXIVg/d/u1kqZj2k+zQlKY8M6Opi7nQBfHNppSbALpI2QbK0xMhc/zEIdYsDkWPF1ko1exVHeUnXuWiXiEVcFGMM3As6GI= Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com (2603:10b6:a03:37e::19) by BYAPR10MB2440.namprd10.prod.outlook.com (2603:10b6:a02:b2::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4436.22; Thu, 26 Aug 2021 16:52:03 +0000 Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::a59e:fa26:ffe4:615b]) by SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::a59e:fa26:ffe4:615b%3]) with mapi id 15.20.4436.025; Thu, 26 Aug 2021 16:52:03 +0000 Thread-Topic: [External] : Re: Does the command loop even look at the return values of commands executed? Thread-Index: AQHXmnkgHw/gk/HSW0q4d0zeHZAQp6uF/sHg In-Reply-To: <83a6l4tlmt.fsf@gnu.org> Accept-Language: en-US Content-Language: en-US authentication-results: gnu.org; dkim=none (message not signed) header.d=none;gnu.org; dmarc=none action=none header.from=oracle.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 92a3df5d-76ac-4a18-391f-08d968b1d44f x-ms-traffictypediagnostic: BYAPR10MB2440: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: WiwsNeEMM3NyHrvzF+LBYF4s1M6ime+XLYB/D/k34lmg8qYXTmJSViBFY9Nm+KvroKER5xcABpveW+8VMk+G3ifjF0zSl7qLdkOIeRtpQbJGanhgCmf+5n1yzq2BLzXOB8Nj/ZNF7ffbFVjcHi3PHIAhSaW5R4ViOufleWeUFfMr1DJiOWWdbgRceFU+sr8kQAH7zd+xb6emxB5L8WJxpFHj1IZq/BMPfDPzkZNHsjO02LVcI93no+D4i6QZZOOQrwBPaONUAbrk3FUZurtxXqz/JCKhBZWlOZAFJ16LlbOAfyABzQ2VHIAW9pgKfVFkb25JoHeR1KsOtF1mEnw4utwzri+voWxS4JAbbHSQTYyS921zMFwDJk33Mzt7gDIgsXbrqWLtLVSCBFg7vhFQiNcmItRwOqENs3brSABzD5L+/RO8+5HQEMhoo94F0EpPDgsdZdVC8yln/nCIC64B837NhgZNkg0NVqPXSclNGZj0vVpYv0XE4mAJccR716ocZdSWfsl5tvn0RKoJHtzvVSR7dduTbA4Ggk8Sf9Zp78ksRobRiDlyK3ms51oA6XtdtbjXGCmRVHogdOA7W5hFtFZM9yoH8fPylu8bBaQwT/EUsCMM/UV2DNmUoq+vnLek+IEHrQrsysv8D1ttyW7x6FqaKlqQ1dXZq4KuM8oNbarJOAGIz6buE+DguE25LkFog9vegTABM88/4cUGVF+abA== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SJ0PR10MB5488.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(376002)(136003)(39860400002)(346002)(366004)(396003)(66446008)(66556008)(44832011)(52536014)(5660300002)(478600001)(64756008)(38070700005)(6916009)(316002)(2906002)(66476007)(71200400001)(8676002)(66946007)(76116006)(55016002)(7696005)(9686003)(86362001)(186003)(33656002)(38100700002)(83380400001)(8936002)(6506007)(26005)(122000001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-2022-jp?B?TjJESGh1MG8vTXE0N0p5R3VlNnlQK2FDTmNBRTZERElqVnNzdS8xclVh?= =?iso-2022-jp?B?UTVoS1d5b0llTXEwTTJjUm1na1Z0eG1VR1JDbjJTN25ZS29jZEdGOXJP?= =?iso-2022-jp?B?UnhmemlUZVZOcU1ZQUpsNHhNK1pvNUs0SDJMMTFDa3cwaXE0Yi9FUSta?= =?iso-2022-jp?B?YVhkRldBbjhhc3VPeTM2ZldidGJkbTJpZjhhdExNVmpiQWFHVkphZEM5?= =?iso-2022-jp?B?cXJ6b3dNUXQrazNtb25nVytnVm8vYWFnUndmUk5Vd2ZFSTJibVpoL0g1?= =?iso-2022-jp?B?WnFMcEg0ank4ZVNzMklZSGxtZ0dUcXhEbCtFVHp1VExuZFlGT01MeVN5?= =?iso-2022-jp?B?Z3o4aVllUFJwUWhOc2R0S2xINFpUb2hqRTNTNTI1bG9qakNvRVdLL2FB?= =?iso-2022-jp?B?RnRZTGJkR0ZmanBacjJKOVBzbFRzNDV5d01VUk03MG5UTHpGU21tRkMw?= =?iso-2022-jp?B?Si85MDQzeWIzYi9LSnZaenFtSGk1eGJ4R2VqUGpSREJDUktrajNEVUJu?= =?iso-2022-jp?B?UmZHdWcyS21PVmpQYXJzdkdXaGQ0SlJPKzBjZnZaNGFpNWRoejF4STZD?= =?iso-2022-jp?B?dEsxYmt0TEZYYTdaOXFUNGg2NlJOOUVja2ZQTW9MNTRDRnRsSi91SmJv?= =?iso-2022-jp?B?c0UwY05SL1 x-ms-exchange-transport-forked: True X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SJ0PR10MB5488.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 92a3df5d-76ac-4a18-391f-08d968b1d44f X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Aug 2021 16:52:02.8912 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: gmgkZkpbXZIqL0/K0hVxOeW+0+6lUKfp/+Fufnz/E2f5DegW44eICEduy+Vn3pBJOoGBKtscDxn4pGVhRXoDXQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR10MB2440 X-Proofpoint-Virus-Version: vendor=nai engine=6300 definitions=10088 signatures=668682 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 phishscore=0 bulkscore=0 malwarescore=0 spamscore=0 adultscore=0 mlxlogscore=799 suspectscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2107140000 definitions=main-2108260092 X-Proofpoint-GUID: tfifMq5CoT8eeFPruQdedF5n3zen7lc3 X-Proofpoint-ORIG-GUID: tfifMq5CoT8eeFPruQdedF5n3zen7lc3 Received-SPF: pass client-ip=205.220.177.32; envelope-from=drew.adams@oracle.com; helo=mx0b-00069f02.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, 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:132748 Archived-At: > > 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? >=20 > 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. (Note that this does _not_ include evaluation in =1B$B!F=1B(B*ielm= *=1B$B!G=1B(B buffers, nor evaluation using =1B$B!F=1B(BC-j=1B$B!G=1B(B, =1B$B!F=1B(BC-= x C-e=1B$B!G=1B(B, and similar evaluation commands in =1B$B!F=1B(Blisp-interaction-mode=1B$B!G=1B(B.) T= he elements are ordered most recent first. (setq x 1) =1B$B"M=1B(B 1 (list 'A (1+ 2) auto-save-default) =1B$B"M=1B(B (A 3 t) values =1B$B"M=1B(B ((A 3 t) 1 ...) This variable is useful for referring back to values of forms recently evaluated. It is generally a bad idea to print the value of =1B$B!F=1B(Bvalues=1B$B!G=1B(B itself, since this may be very long. I= nstead, examine particular elements, like this: ;; Refer to the most recent evaluation result. (nth 0 values) =1B$B"M=1B(B (A 3 t) ;; That put a new element on, ;; so all elements move back one. (nth 1 values) =1B$B"M=1B(B (A 3 t) ;; This gets the element that was next-to-most-recent ;; before this example. (nth 3 values) =1B$B"M=1B(B 1 ___ Although it doesn't apply to `C-x C-e', it does apply to `M-:'.