From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?Windows-1252?Q?Vincent_Bela=EFche?= Newsgroups: gmane.emacs.devel Subject: RE: a ses question Date: Fri, 3 Nov 2023 15:54:06 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="_000_PAXP192MB16082AEA286439C6AA0305F284A5APAXP192MB1608EURP_" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14732"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel , "boruch_baum@gmx.com" , =?Windows-1252?Q?Andr=E9s_Ram=EDrez?= To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Nov 03 19:40:45 2023 Return-path: Envelope-to: ged-emacs-devel@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 1qyz64-0003ZD-Gq for ged-emacs-devel@m.gmane-mx.org; Fri, 03 Nov 2023 19:40:44 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qyz57-0004tQ-R3; Fri, 03 Nov 2023 14:39:45 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qywZo-0001mh-5Y for emacs-devel@gnu.org; Fri, 03 Nov 2023 11:59:18 -0400 Original-Received: from mail-vi1eur04olkn082d.outbound.protection.outlook.com ([2a01:111:f400:fe0e::82d] helo=EUR04-VI1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qywZm-0003hm-4J for emacs-devel@gnu.org; Fri, 03 Nov 2023 11:59:15 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZhuUAJ+tKkOV0cTsribJ2xo5t3XCGCzli6FhPLzGLZIC/Atu6yYkIVxGN6roX9ftGCJh36h0phRcN5GbWc9PilvNcmGEdCMJqxUj6jRxDnXApdMEBI89LAAIExvdWUR8fAMV15Ob7AxGW1mVQ7ZxpmGnFCroQHZFo3yVFI6yloPIkbi/EdzM8u2eihA8VIVbiIqO+UEWnzCcWvgpff0kT13k2NfYvSEN72ojX/BiqBMSKkJW+kWTrE51i2szn4p1npxuoCeDZpbVr2mVG4vCS6axesXCe0ePmkXKrWVZhLZRehPBk1czhCgT007PhFNm6H5F9M+NJhDWpQDLrXbNNw== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=X1dy2bixOgKI17Hhqrw4hvCCTHPLQj0/HVJOjdDVDzU=; b=VDoksoJsqOEDmM4eP1cBJyVn0T18rFx0nJa+EPlvNpi/qpOLV0oxfFP8hQ+89nUj3ZsAED+wMujjc1Ic14yhoeHo+H8fh/EJqntTfZhlWKaLiz8gbnPM6Su2ceiZc1b1Vc+uWS20Lc+pAhu+LjB2g6Bd1xrMx3gANZEz686FEFcpQ7sEZJ/VQ+tnD0sm07pkjEH37XHb9wq5EaGxOMMGdBpN67OkEIZMxC45rJtqgfihZ2dvLSLiuXaJoRiXk25iFlzdFiZc/MQx2ouyq+yPuOmpIS4PdLWtg9TwkqOFt4oaivIus5sVp4hpNunfNG5KXo22jXAlTcOXh6wJepG7qQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none Original-Received: from PAXP192MB1608.EURP192.PROD.OUTLOOK.COM (2603:10a6:102:28c::22) by DU2P192MB2169.EURP192.PROD.OUTLOOK.COM (2603:10a6:10:494::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6954.21; Fri, 3 Nov 2023 15:54:06 +0000 Original-Received: from PAXP192MB1608.EURP192.PROD.OUTLOOK.COM ([fe80::a0e9:c28e:ff43:2125]) by PAXP192MB1608.EURP192.PROD.OUTLOOK.COM ([fe80::a0e9:c28e:ff43:2125%6]) with mapi id 15.20.6954.021; Fri, 3 Nov 2023 15:54:06 +0000 Thread-Topic: a ses question Thread-Index: AQHZ1BumgOzfcB6sxEitbppMRXTSirBhYwO7gABPdauAAIy9rIAA4BGAgAMklF+AAAJ9JoAABa5GgAEJLgeAAHTskYABXnld In-Reply-To: Accept-Language: fr-FR, en-US Content-Language: fr-FR x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [4nnlI+HfsUy7+15afKUZukCaxaytu/+g] x-ms-publictraffictype: Email x-ms-traffictypediagnostic: PAXP192MB1608:EE_|DU2P192MB2169:EE_ x-ms-office365-filtering-correlation-id: 2089ff77-7c7e-41d6-300a-08dbdc851c3d x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: T7D6GyaLIeYLFCkoCa/7xaax8kq5BoxD6g4nxxLiWyCZy+DXWyZxeyWGkFYgAgRnu5c2gwuG13AFG0DJ40jZSjJ67sQADncCRGCHT55e6NbFRyzojmMPQrpusBAsP8XXg1MLoj1hwyuIgLTm19I7TlFwM2EbFYRN8dZqiOZILJM3fgs/ssaECkn7es8lLBQQocwNr+x41JeV6Ope5nIAqGidcpJp/y2EqiGOCCgysK/Ur77sXoN0M2EiJm0AKYHV1GQWd3XtsppLmIPM4rJFZ1wN6USUq2eC62dRkb9kr5gn24bV75Nujnpj1yGva+3NtZ+rkNcyJZkiMkLksUk99IEtIrSQwAzzC111dhh+EtEjO8R8JebdpPe23MYN+sKcUart0zAxdPHGCZ4tZ7yymLojVMMLB6dJfivNg5cyWOYsUo5J8gWv5r2IQv5L86u71RgUOhusj6HHy0fMzhq4zUB2pWjGleXHCNGLkzKWX+l5otA4VyIbfu/+PVKnMC+8sX+/0l1vbcKLXSzg/MExfP4Fcj6OLnUOh7aK+5+1X6poIzf+XI7t319sY8hjEdH9 x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?Windows-1252?Q?7Ld4j9DmSsjCuQj9cdaWvTPoCmReF+miuBchP24FMjJS9/dLqx15GGby?= =?Windows-1252?Q?2+K0ybQ7XXHy7c6bsw47ceVuiwkQEQpb8iWYuK5+Cb/l9gKQVy7YTur3?= =?Windows-1252?Q?cR7uOtW19M40VrRaGNT/Xj9zslekcEwoiIUT4Plarv8o5qN9zqHGBJmC?= =?Windows-1252?Q?Eh2fwRAdX3mmtMWAXs8jXYd5gz+1/yVyewH02j7KvwFF4PjClrWVht4w?= =?Windows-1252?Q?WfQD+tgdzJya86L+DxP/vDlVdqFpH8CqHOHTaf9pJnVmdYXBTrNRaH1M?= =?Windows-1252?Q?OTeOS58TYp+IK0KcJBPU+fNCQhYz2jH/pPxeE6MtquAWh4AolNYjblPi?= =?Windows-1252?Q?WaWTPY4P8nZrdLie09wKqOwasilROpXHECTrGBDGoaaICt0SEjxdVC33?= =?Windows-1252?Q?pJNZeD/Gx46N7d96pu4cUwBiYZZbTwP71j5YvHfd1KGv4XDZvdImeCpU?= =?Windows-1252?Q?dTDh2ylu1KbiZRfKTVyiRL77d98vHmhqPWSKkNqPtuJwYYM3VDKFPD1h?= =?Windows-1252?Q?Cv0L7AKW81DQyzHUZnwGgzV9UgnXYFgbcr4Qq5ZJAN4EGPxkqGIev1H0?= =?Windows-1252?Q?H+GTtW1oZcwmbN4LNv/HeosY2UP9GncQyrxIXm2kF4I+EHTvIPcdWoyb?= =?Windows-1252? X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-fb43a.templateTenant X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PAXP192MB1608.EURP192.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 2089ff77-7c7e-41d6-300a-08dbdc851c3d X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Nov 2023 15:54:06.5076 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2P192MB2169 Received-SPF: pass client-ip=2a01:111:f400:fe0e::82d; envelope-from=vincent.b.1@hotmail.fr; helo=EUR04-VI1-obe.outbound.protection.outlook.com X-Spam_score_int: -6 X-Spam_score: -0.7 X-Spam_bar: / X-Spam_report: (-0.7 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, FREEMAIL_REPLY=1, HTML_MESSAGE=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Fri, 03 Nov 2023 14:39:44 -0400 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:312172 Archived-At: --_000_PAXP192MB16082AEA286439C6AA0305F284A5APAXP192MB1608EURP_ Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable Dear Stefan, Thank you for your reply. On second thought I think that I just did a mista= ke in the fix I intended to do. I am investigating it and will come back wi= th a working fix for Andr=E8s's problem or more questions =85 V. ________________________________ De : Stefan Monnier Envoy=E9 : jeudi 2 novembre 2023 19:19 =C0 : Vincent Bela=EFche Cc : emacs-devel ; boruch_baum@gmx.com ; Andr=E9s Ram=EDrez Objet : Re: a ses question > (let ((the-ses-buffer (get-buffer "toto.ses"))) > (with-current-buffer the-ses-buffer (insert (format "%S" (ses-range A1 = A1))))) `ses-range` is a macro. The exact moment at which a macro is expanded is not defined precisely. It can be expanded basically any time as long as it's before the resulting code is needed for execution. In other words, it's perfectly normal that the macro call `(ses-range A1 A1= )` is macro-expanded before any of the above code is executed. If you don't want that, you need to use a function instead. Stefan --_000_PAXP192MB16082AEA286439C6AA0305F284A5APAXP192MB1608EURP_ Content-Type: text/html; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable
Dear Stefan,

Thank you for your reply. On second thought I think that I just did a mista= ke in the fix I intended to do. I am investigating it and will come back wi= th a working fix for Andr=E8s's problem or more questions =85

  V.



De : Stefan Monnier <mon= nier@iro.umontreal.ca>
Envoy=E9 : jeudi 2 novembre 2023 19:19
=C0 : Vincent Bela=EFche <vincent.b.1@hotmail.fr>
Cc : emacs-devel <emacs-devel@gnu.org>; boruch_baum@gmx.c= om <boruch_baum@gmx.com>; Andr=E9s Ram=EDrez <rrandresf@hotmail.co= m>
Objet : Re: a ses question
 
> (let ((the-ses-buffer (get-buffer "toto.= ses")))
>   (with-current-buffer the-ses-buffer (insert (format "= %S" (ses-range A1 A1)))))

`ses-range` is a macro.  The exact moment at which a macro is expanded=
is not defined precisely.  It can be expanded basically any time as lo= ng
as it's before the resulting code is needed for execution.

In other words, it's perfectly normal that the macro call `(ses-range A1 A1= )`
is macro-expanded before any of the above code is executed.

If you don't want that, you need to use a function instead.


        Stefan

--_000_PAXP192MB16082AEA286439C6AA0305F284A5APAXP192MB1608EURP_--