[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: a ses question
|
From: |
andrés ramírez |
|
Subject: |
Re: a ses question |
|
Date: |
Sat, 04 Nov 2023 13:46:25 +0000 |
Hi. Vincent.
My comments below.
>>>>> "Vincent" == Vincent Belaïche <vincent.b.1@hotmail.fr> writes:
Vincent> [1 <text/plain; Windows-1252 (quoted-printable)>] Dear Andrés,
Vincent> Please find a tentative fix
Vincent>
[https://res.cdn.office.net/assets/mail/file-icon/png/generic_16x16.png]
Vincent> ses.el<https://1drv.ms/u/s!AkDIBBjRAOVwg2_MBM_HJ7xOBFEl> that
allows ses-range to be
Vincent> expanded not in a SES buffer, provided that the result is
evaluated in a SES buffer. So
Vincent> you can get values from the SES buffer this way (without the (eval
(quote …))
Vincent> workaround to delay evaluation) :
It works. Thanks
[...]
Vincent> Doing this way rather than getting strings with buffer-substring
from the print area
Vincent> you get raw values, not formatted values. This may be more
convenient if you need to
Vincent> format them otherwise than SES does. Also you do not suffer from
any text truncation
Vincent> done by SES due to cells' limited width. This is why this is the
method which I always
Vincent> use, even though you need to do some reformatting of these values.
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-result
(let ((range (ses-range N3 N6 *1)))
(pop range) ; remove 'vec
(setq mysesoutput (concat (number-to-string (nth 0 range)) "\n"
(number-to-string (nth 1 range)) "\n" (number-to-string (nth 2 range)) "\n"
(number-to-string (nth 3 range)))))
--8<---------------cut here---------------end--------------->8---
Vincent> If you really want to read from the print area you need to call
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 then 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 email.
Best Regards
Andrés Ramírez
- Re: a ses question, Andrés Ramírez, 2023/11/01
- RE: a ses question, Vincent Belaïche, 2023/11/01
- RE: a ses question, Vincent Belaïche, 2023/11/01
- RE: a ses question, Vincent Belaïche, 2023/11/02
- RE: a ses question, Vincent Belaïche, 2023/11/02
- RE: a ses question, Vincent Belaïche, 2023/11/02
- Re: a ses question, Stefan Monnier, 2023/11/02
- RE: a ses question, Vincent Belaïche, 2023/11/03
- RE: a ses question, Vincent Belaïche, 2023/11/04
- Re: a ses question,
andrés ramírez <=
- Message not available
- RE: using ses programatically (was: a ses question), Vincent Belaïche, 2023/11/05
- Re: using ses programatically (was: a ses question), andrés ramírez, 2023/11/05
- RE: using ses programatically (was: a ses question), Vincent Belaïche, 2023/11/05
- Re: using ses programatically (was: a ses question), andrés ramírez, 2023/11/05
- RE: using ses programatically (was: a ses question), Vincent Belaïche, 2023/11/19
- Re: using ses programatically (was: a ses question), andrés ramírez, 2023/11/19
- RE: using ses programatically (was: a ses question), Vincent Belaïche, 2023/11/19
- RE: using ses programatically (was: a ses question), Vincent Belaïche, 2023/11/19
- Re: using ses programatically (was: a ses question), andrés ramírez, 2023/11/19