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: Sun, 29 Oct 2023 16:43:11 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="_000_PAXP192MB16087BA5697F0AF5B7F2E1DB84A2APAXP192MB1608EURP_" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8491"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel To: =?Windows-1252?Q?Andr=E9s_Ram=EDrez?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Oct 29 18:39:51 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 1qx9lP-0001yL-B3 for ged-emacs-devel@m.gmane-mx.org; Sun, 29 Oct 2023 18:39:51 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qx9kc-0000CB-R5; Sun, 29 Oct 2023 13:39:02 -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 1qx8xX-0007AJ-N7 for emacs-devel@gnu.org; Sun, 29 Oct 2023 12:48:21 -0400 Original-Received: from mail-vi1eur05olkn20801.outbound.protection.outlook.com ([2a01:111:f400:7d00::801] helo=EUR05-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 1qx8xV-00066a-Sl for emacs-devel@gnu.org; Sun, 29 Oct 2023 12:48:19 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nlaCyjHxvau883DRqUSGJI7ea4BMDRTi+6OIh+s6eic8Zy1iEfwN/EqrVtZL7lyXx5JiNZmgXZvAP/1w1L/o5zZT8fPRn3y6LR4EGnH5lRmd4bQAaieecUQU43PB/bf4bKtpttmJgZ/UbEtca5ODM0awtME3h3SAc3Mvlpjj/az69Ot1sL0b/395JqM6vs5nBzH5pIxA+5q1BGNGQJXH5XxgJQ7/kZ9lEIZ6cOWkFtlbhf0tKUCvEamZTxy686P1tjwWNXw7UlJCjblh1hLVr0fLKmyppTNRPS6EE9xxW7yVHPlbTIVgF4z9WlVvhRnJlwJh5ZKPwgLtvgSCLtePHw== 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=mLkUDuACbY40C26RTj8n1ZDUzHTjJcyYU8TyL3WE/38=; b=WEvAPhhl3Yqv75hnhJNVJiksBEsrJZ5t7L6yVPf5wNiROMDDfrUuawTZWJ36PbuMWBTnCgbXcMQ+ORpDvULO7ZvEXPUjdOZmwIDbuae6XWoeD+AHV2LybjN4A7q1Y1Cw4YFmwfhw9RyNbnnDdn7Fmd8H2cpfrG37WMaX4CauNqHC2O/dxK41qfd3S8mtrvXPGpTKjaMUbjhKsffRxoeWlU9dPNRxqj0PC5nC7qFnGdasxw7XRHCBiPKFY7ofuFLREpacChs0jNmlrRVfXiW6SUUeWRsRhlKKSN+tG/0PGEPWJ7pHNYE5KXtS7US9GYiEw0o1/uyNOtZW+xxmeAq87Q== 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 GV2P192MB1941.EURP192.PROD.OUTLOOK.COM (2603:10a6:150:c2::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6933.22; Sun, 29 Oct 2023 16:43:11 +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.6907.032; Sun, 29 Oct 2023 16:43:11 +0000 Thread-Topic: a ses question Thread-Index: AQHZ1BumgOzfcB6sxEitbppMRXTSirBhYwO7 In-Reply-To: Accept-Language: fr-FR, en-US Content-Language: fr-FR x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [Bg35tDeqayF1yHttuy3weUHmRKIsxnkS] x-ms-publictraffictype: Email x-ms-traffictypediagnostic: PAXP192MB1608:EE_|GV2P192MB1941:EE_ x-ms-office365-filtering-correlation-id: 0c6d1b83-f6b9-457a-4dfd-08dbd89e2343 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: bbUDE4ITh/nPW3HuOMYVE5yi5x98Ia36DKAKaGVgOnFIx2kV18ZPYdI2qPySiHGgW1Zonwz9pgFVfHFcfzEVs9NmnoDJwmyZAQ8uQvhiNIaizxRoCvsFlMfSwXNmrR+yXDbjAsxFYZi+4LjQplPtxGEhyqatcM+VVxlyHOCnGMFqSkbI7QY7WosuXz/mjcaB6nfcjjsrEc9M0cVE2U/q2vZCY/BkUs2+BDe4Yi+KI4B5wbIyGW8OyFlNoSPj6pxkBrSTWpgHI8CLcRfA4/4/Oij+JrFVEWbm6biUgiYn45jS7Et2dap1L74rf28SPsMR+VY6XH/wuiGnuDUaFXef5bL9knWBBTLCckpJdOIgdIYTlVkNe4FLuF1STSFpXQNkSMM+LVyQrB4LKfmm6WS6W2Ij7Of1geA1KlFxkswoKyXGWxXunrEIiP5lM3l5ywUYoGip9m9WZxPHg7mnwUYfaWNuElBErxUSCxvgBXafL86Pn1an0A9qrWlr7o28pfOGtVdNXspHCdZFi6pFYpgTzhmFlXZQJfu9lwqCmPLl522vy5zNYfWuTJ95q8f2JZ9PKmex36VxCOZIGvp012Y66Eisy6iVxy24INQTXKxXeeLaWuyotCgMFmKogwgggUL+ x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?Windows-1252?Q?bYNwdBuof99PRYU+5fImd6BUAo4eX+/m1vR/R5x5nDLRAru9yFAFvIbx?= =?Windows-1252?Q?fhJxfvzIJ46NNx60xRQHIMbajkmYE8jrqn2mHJQLYjia8dDyrr/UgWKK?= =?Windows-1252?Q?5Bajv82X0yaMkTNx9GaGbQUr5LYLraJlElNw53hQh0BqiHQ39ruaeB+I?= =?Windows-1252?Q?03obXwf04RoYz+Z3+7700ZTjmwNuKusotFoDMmI6kbikRrmGk+DZ50Vn?= =?Windows-1252?Q?HeFHBvzv/GDAYXyyMKGZ49jKwy5y0IPYJ17yApUCFvCHZmr3d9O7G8uY?= =?Windows-1252?Q?pR094rypb+tRAUDPnU6ExexcPbVAvtXNcuxGHuLzYeGaIzlG9fkAcvRv?= =?Windows-1252?Q?I4B893Y2+A+ZCq5/Qf4HyuzhkAPn6OrxW/aLMtlNKloQX8bH4uS3HbiH?= =?Windows-1252?Q?cMfMxfp6N1w+O7Ou3w2InXomQPzfEuad5JGGXYZ5Z/zVww3fU6Ccebcy?= =?Windows-1252?Q?jjEOLTycAts8yakPlOH/0aMdQbprWS5P/3r6ZlfW/VYu3BUzQbVvu3EK?= =?Windows-1252?Q?um3gfuzRofCFhYJDuvx9wPvpnU8WDRw1Ib4cMb5SAEaWYquej4o1Umbs?= =?Windows-1252?Q?XhDTXbQ3QRrPWw+p6AHnftaxtLTqHZQ6gBLsawYB9uQGxUJGDqQYoWpn?= =?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: 0c6d1b83-f6b9-457a-4dfd-08dbd89e2343 X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Oct 2023 16:43:11.0664 (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: GV2P192MB1941 Received-SPF: pass client-ip=2a01:111:f400:7d00::801; envelope-from=vincent.b.1@hotmail.fr; helo=EUR05-VI1-obe.outbound.protection.outlook.com X-Spam_score_int: -15 X-Spam_score: -1.6 X-Spam_bar: - X-Spam_report: (-1.6 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sun, 29 Oct 2023 13:38:55 -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:311976 Archived-At: --_000_PAXP192MB16087BA5697F0AF5B7F2E1DB84A2APAXP192MB1608EURP_ Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable Please wite to me directly also, because I am not actively following the li= st. I think that the issue is that you collect the result of the computation by= reading the text in the print area. The print area is refreshed in a defer= red way, and this is why it is not up-to-date when you read it with a buffe= r-substring call. You need to call ses-write-cells before doing that. I have not tested it. Vincent. PS : you can set the cell value by just doing something like (setq A1 "valu= e of A1" A2 "value of A2"), that will work for setting the input of the the= computation, but the undoing won't work, and you will need an explicit ses= -recalculate-=85 to trigger the computation. Also this is probably not futu= reproof because I intend to change the way how the ses cell value are store= d. Maybe I should create a ses-setq form to do that. If you set the input a= s you are doing, I don't think that the ses-recalculate-=85 is needed, but = if you collect the result from buffer-substringing the print-area you will = need it. ________________________________ De : Andr=E9s Ram=EDrez Envoy=E9 : lundi 21 ao=FBt 2023 12:38 =C0 : Vincent Bela=EFche Objet : a ses question Hi Vincent. In case You are not following the emacs-help mailing list. I am sending You= the link to the mail message. =968<----------=96=97cut here----------=96=97start--------=96=97>8=97 https= ://lists.gnu.org/archive/cgi-bin/namazu.cgi?query=3D%2Bmessage-id%3ASJ1PR12= MB6363267DB30BCE80E678BCFDA61EA%40SJ1PR12MB6363.namprd12.prod.outlook.com&s= ubmit=3DSearch%21&idxname=3Dhelp-gnu-emacs =968<----------=96=97cut here---= -------=96=97end----------=96=97>8=97 Best Regards --_000_PAXP192MB16087BA5697F0AF5B7F2E1DB84A2APAXP192MB1608EURP_ Content-Type: text/html; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable
Please wite to me directly also, because I am not actively following the li= st.

I think that the issue is that you collect the result of the computation by= reading the text in the print area. The print area is refreshed in a defer= red way, and this is why it is not up-to-date when you read it with a buffe= r-substring call.
You need to call ses-write-cells before doing that. I have not tested = it.

  Vincent.

PS : you can set the cell value by just doing something like (setq A1 "= ;value of A1" A2 "value of A2"), that will work for setting = the input of the the computation, but the undoing won't work, and you will = need an explicit ses-recalculate-=85 to trigger the computation. Also this is probably not futureproof because I intend to change the way h= ow the ses cell value are stored. Maybe I should create a ses-setq form to = do that. If you set the input as you are doing, I don't think that the ses-= recalculate-=85 is needed, but if you collect the result from buffer-substringing the print-area you will ne= ed it.

De : Andr=E9s Ram=EDre= z <rrandresf@hotmail.com>
Envoy=E9 : lundi 21 ao=FBt 2023 12:38
=C0 : Vincent Bela=EFche <vincent.b.1@hotmail.fr>
Objet : a ses question
 

Hi Vincent.

In case You are not follo= wing the emacs-help mailing list. I am sending You the link to the mail mes= sage.

=968<----------=96=97c= ut here----------=96=97start--------=96=97>8=97 https://lists.gnu.org/archive/cgi-bin/namazu.cgi?query=3D%2Bmessage-id%3ASJ= 1PR12MB6363267DB30BCE80E678BCFDA61EA%40SJ1PR12MB6363.namprd12.prod.outlook.= com&submit=3DSearch%21&idxname=3Dhelp-gnu-emacs =968<-------= ---=96=97cut here----------=96=97end----------=96=97>8=97

Best Regards

--_000_PAXP192MB16087BA5697F0AF5B7F2E1DB84A2APAXP192MB1608EURP_--