From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?andr=C3=A9s_ram=C3=ADrez?= Newsgroups: gmane.emacs.devel Subject: Re: a ses question Date: Sat, 04 Nov 2023 13:46:25 +0000 Organization: bien.comun.org Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25538"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel , "boruch_baum@gmx.com" To: Vincent =?utf-8?Q?Bela=C3=AFche?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Nov 04 15:03:12 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 1qzHF1-0006PM-La for ged-emacs-devel@m.gmane-mx.org; Sat, 04 Nov 2023 15:03:11 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qzHEn-0002ZL-P3; Sat, 04 Nov 2023 10:02:57 -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 1qzH3q-0007iK-Mz for emacs-devel@gnu.org; Sat, 04 Nov 2023 09:51:38 -0400 Original-Received: from mail-bn8nam04olkn20801.outbound.protection.outlook.com ([2a01:111:f400:7e8d::801] helo=NAM04-BN8-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 1qzH3o-00080L-TQ for emacs-devel@gnu.org; Sat, 04 Nov 2023 09:51:38 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PfspGxUomFhtD2fsx6EtY1rCqmMC2owhXHZsE0ZNENnxSF22H4IHYkQUgJpWE3nLrGDxeL3arYMJTbL1bzqUVZt5G4GrEAVIKFMiCHghWdwmbq0gqkSdgqJAn89JCd+H88z81CLJQzZHk9q28ShskDGszAZ5OmQZ2u55WfPhgawqOZrpt89ugcU1Sl7AaxqJTQRYAWwW59VI2DFsTjeIITZ0rCIki5Ahq8skz4UOYTfy+l5Tzt5/e1szw1wgfcrMsk1zzAZrbZVBlKcFDBvo79D6FN7eDnLuxr2fiQ+kvFXVgGE8XUm4zH44Behp19Vf30SoxBPoxPo4HQaGOgc0GA== 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=wq8m8FUUSXRJXDnynr5did6uD+8qk3SyzR3uF7Yqo/o=; b=InH1pnXzpwlR8vFrb5hVdUZZ08JZByLRWQNXlQk2m7dBpuYOT5TvbDiLn7OacH6zc7qZtlMcVE7geoPA+bV0+0QqYnc0/8zG/nYi+qAUX+wXJfJYUmUzvRl6BfzUIT6zFjE24v8p0/k+WMQlBE5xM9NUnNzJmaiGF8oRRh+iA/3ifiXl2jllo+/LimvjbXzKpfaxIASAJiqV5jBrPnPn82xKVvuyMk5v4orF8XcHoQz2JE7BlHn7dnagC92XOhbIbVY/lmh+LZhi3vNBpJRQNqwzOTuvGiKvSHkEXN9JHWYRQYITCTzFqVKRBi9Y6/FBfF/V0DIL14rLMcwTzS0kFA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=wq8m8FUUSXRJXDnynr5did6uD+8qk3SyzR3uF7Yqo/o=; b=bAfWhZUGdRKk6v/7gjYlrCCzRHZr0YHAYHem/Dx2HYQH2pMNrMad5Pqj1X6W8BfXVTsiqG1KdvZcMLDcR/YYsUFglPSBNuKIBnWxVwVLC3/kRtd2RxRkyzIvtrpEflqKxSJ94pG3DGkIQF+T2fyUvSgDk8dBjWs2RIAQPyxmALnZqKQDQToHI7dKfE17d5vVrk5x5l2HRJvcFrwrtbALtHQkKCOxMou8F+m1x8iPFUMw9qLPcHVMkmRwC4KPsubDuDQ+9RFSlD9j4sZ2MOVsbyzyhpfAk5uFIMMCnWqGXQGz1kVqR7xyxqgTxHhcO3T6+n7HfXMhHfXiF4SUdbt0dg== Original-Received: from SJ1PR12MB6363.namprd12.prod.outlook.com (2603:10b6:a03:453::9) by LV2PR12MB5895.namprd12.prod.outlook.com (2603:10b6:408:173::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6933.25; Sat, 4 Nov 2023 13:46:32 +0000 Original-Received: from SJ1PR12MB6363.namprd12.prod.outlook.com ([fe80::b621:3063:2c6f:56e7]) by SJ1PR12MB6363.namprd12.prod.outlook.com ([fe80::b621:3063:2c6f:56e7%6]) with mapi id 15.20.6954.019; Sat, 4 Nov 2023 13:46:32 +0000 In-Reply-To: X-Attribution: INKA X-TMN: [tLtoVwgmUOi7WaT2oerKEdhQcbLxWpdp] X-ClientProxiedBy: SCYP215CA0013.LAMP215.PROD.OUTLOOK.COM (2603:10d6:300:31::22) To SJ1PR12MB6363.namprd12.prod.outlook.com (2603:10b6:a03:453::9) X-Microsoft-Original-Message-ID: <864ji1ljgu.fsf@hotmail.com> X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ1PR12MB6363:EE_|LV2PR12MB5895:EE_ X-MS-Office365-Filtering-Correlation-Id: b6aad716-fc1b-4096-e16b-08dbdd3c73d0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: lDgrcod68ZtHm4kBjTvGkmAN8zY1hBSIkZLaASMDgCtNNoHCM9xIU9pF6WMpqSJMuzr/PTUbYl/kVwwru3Tjrn+4YOzdqGCqu2x1k476OJu2YMR2E776BScVB+i302HL013/eVOrK5vEuMhS/1P65qsPY+oq1gx+IpxJP+nAWbFaF0yCHolv80hz2MQmGwzPkw9BHcXfNp5i3nsxixoVy7olB6c4Rwt3kEaAeAZAQ4tiVt+i++9NWPjTh9FsVztSirG6O5hPDmw0wNvYjHzNpCh6c6bCDASAy+3UaW5ypA2bHd/cLUdwzkMSCvxdt7ohvVMQbmLjoOD4E4EEJEmaayIeISeECKUMdwDIEqDjUdsvpiw++PIGTKwqotySwVKrUL5eNP5ViG48lb+gXvxuxOvrvD7yINogUWC57SNGZjf4IY8FWVuKbLF2JZwazd3SV6BfyOagfylUb047ieVYCUfKQ53n6ZCsMb9oocr3QdPLghoERuhMiAIo8wtJ6LobcNc0s59n5wiY+YKZFPZ4l7jI21ujvdYmfCfyBnsSu/JWm5fwr7V8EdnpgpYiU8J1SW7bvGLRndzayqBHsLzWsKSlt8KNPO8118XBXVg9B6dB7mcLNMsyvPn35xyWSidUiYfqunCzGhyfqXEcUZvxBMRYiQZ9WNIh6ARmRUlXFyhLEWt+HHdPD+/FdjKBQFc8accl5iK0V8yJk+fbZL7g+Q== X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?MCtZZCtnbW1lam8rN0R2UVh2aGU1bFg4SnptcUgycmFBMVQ0bGMyUUh0SzdT?= =?utf-8?B?UVo5eFluZ2FQdDBVVUxNdjlsVXVicnROd0VzM01hTmdTM1liVzZXQkdqeFdH?= =?utf-8?B?aXhGRmswakVHUG1lRnpxOWV6N3lGTlFpaUFxa25ROU5SNENrMi9CL3hSY2Fs?= =?utf-8?B?Y3d0cUttTzFmWnBwWlQzcm54YWRaMmRLeXQyWFhxSmZWcjRBRHJaTGdZRkZU?= =?utf-8?B?YUlxVmpSajlsWnBxR1d4T3ZJVzlNUXRVd0dMWXE2eWRmclM4aWd2WCt1bG01?= =?utf-8?B?UVA3Tnd6dkJjbEg1YWJaNmRlSDQ0RWR5U1Y1TllpSitZRTRacjZIUTNuUmdH?= =?utf-8?B?ZEFaYkRDVEpkSXFvRWs4V2JManRYK0RYQXdRcmZzdU4yeExYRm1OV2x3OTJ4?= =?utf-8?B?NE9oQ3gvNVpBZ201RHRORzRtREdKdk5STThjazBkYyt0aUI2c2RZUG9WWVRD?= =?utf-8?B?VkdvLyt2cjgrbFI2d1M2ekNJU2ZYQ05MbTJLSlp3eTB3MVlzdDRjMWhkRVUz?= =?utf-8?B?N0dVVXhqbHA0RmRMMXZlMEc0OFIxajZxZ3pDY3NrYXFMWStaTEs0ei9wR2xK?= =?utf-8?B?cHdzcWJrYVpnT0o5cmJCRkJOYkpvK3RDSDJadTZOYjhmb0hoMkI3bXZSM0d0?= =?utf-8?B?WmlHSDU5NGplU01pcHVsUkh3SU52NEJ5UkExWX X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-71ea3.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: b6aad716-fc1b-4096-e16b-08dbdd3c73d0 X-MS-Exchange-CrossTenant-AuthSource: SJ1PR12MB6363.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Nov 2023 13:46:32.0106 (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: LV2PR12MB5895 Received-SPF: pass client-ip=2a01:111:f400:7e8d::801; envelope-from=rrandresf@hotmail.com; helo=NAM04-BN8-obe.outbound.protection.outlook.com X-Spam_score_int: -19 X-Spam_score: -2.0 X-Spam_bar: -- X-Spam_report: (-2.0 / 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, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_SBL_A=0.1 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sat, 04 Nov 2023 10:02:53 -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:312213 Archived-At: Hi. Vincent. My comments below. >>>>> "Vincent" =3D=3D Vincent Bela=C3=AFche write= s: Vincent> [1 ] Dear Andr=C3= =A9s, Vincent> Please find a tentative fix Vincent> [https://res.cdn.office.net/assets/mail/file-icon/png/generic_= 16x16.png] Vincent> ses.el that = allows ses-range to be Vincent> expanded not in a SES buffer, provided that the result is eval= uated in a SES buffer. So Vincent> you can get values from the SES buffer this way (without the (= eval (quote =E2=80=A6)) Vincent> workaround to delay evaluation) : It works. Thanks [...] Vincent> Doing this way rather than getting strings with buffer-substri= ng from the print area Vincent> you get raw values, not formatted values. This may be more con= venient if you need to Vincent> format them otherwise than SES does. Also you do not suffer fr= om any text truncation Vincent> done by SES due to cells' limited width. This is why this is t= he method which I always Vincent> use, even though you need to do some reformatting of these val= ues. It ended this way. Formatting was not needed. And also ses-write-cell was needed. --8<---------------cut here---------------start------------->8--- (ses-write-cells) ;;; '*1' formatting to vector also the range is the computation-resul= t (let ((range (ses-range N3 N6 *1))) (pop range) ; remove 'vec (setq mysesoutput (concat (number-to-string (nth 0 range)) "\n" (nu= mber-to-string (nth 1 range)) "\n" (number-to-string (nth 2 range)) "\n" (n= umber-to-string (nth 3 range))))) --8<---------------cut here---------------end--------------->8--- Vincent> If you really want to read from the print area you need to cal= l ses-write-cells before Vincent> reading, to ensure that the print area is up-to-date. See above. ses-write-cells was also needed using that way. Vincent> Please tell be if the linked ses.el works fine for you, and th= en I would commit it. It works as it was intended to be used. I have another question. But I am going to change the subject on another em= ail. Best Regards Andr=C3=A9s Ram=C3=ADrez