From: "Vincent Belaïche" <vincent.b.1@hotmail.fr>
To: "andrés ramírez" <rrandresf@hotmail.com>,
"christoph.conrad@gmx.de" <christoph.conrad@gmx.de>,
"cyberbob@redneck.gacracker.org" <cyberbob@redneck.gacracker.org>,
"syver-en@online.no" <syver-en@online.no>,
"fischman@zion.bpnetworks.com" <fischman@zion.bpnetworks.com>,
"Thomas.Gehrlein@t-online.de" <Thomas.Gehrlein@t-online.de>,
"c.f.a.johnson@rogers.com" <c.f.a.johnson@rogers.com>,
"lyusong@hotmail.com" <lyusong@hotmail.com>,
"juri@jurta.org" <juri@jurta.org>,
"maierh@myself.com" <maierh@myself.com>,
"anash@san.rr.com" <anash@san.rr.com>,
"pinard@iro.umontreal.ca" <pinard@iro.umontreal.ca>,
"ppinto@cs.cmu.edu" <ppinto@cs.cmu.edu>,
"xsteve@riic.at" <xsteve@riic.at>,
"epameinondas@gmx.de" <epameinondas@gmx.de>,
"rms@gnu.org" <rms@gnu.org>,
"teirllm@dms.auburn.edu" <teirllm@dms.auburn.edu>,
"jotto@pobox.com" <jotto@pobox.com>
Cc: emacs-devel <emacs-devel@gnu.org>,
"boruch_baum@gmx.com" <boruch_baum@gmx.com>
Subject: RE: using ses programatically (was: a ses question)
Date: Wed, 27 Dec 2023 17:42:04 +0000 [thread overview]
Message-ID: <PAXP192MB1608F78598D2AB72F9D9AD9E849FA@PAXP192MB1608.EURP192.PROD.OUTLOOK.COM> (raw)
In-Reply-To: <PAXP192MB16082462DE71B69A33593E3E849AA@PAXP192MB1608.EURP192.PROD.OUTLOOK.COM>
[-- Attachment #1: Type: text/plain, Size: 3820 bytes --]
Hello Andrès and al.,
I write to all people listed in SES manual acknowledgements to know if anybody minds the proposed change to how ses-select works.
Here is an update (from my dev branch, nothing yet pushed), with ses-select fixed. Also ses-range does not directly inlines the implementation, but now delegates to a helper function ses-range-engine. ses-range-engine has an extra-argument value-extractor, this way, if one day we wish to make some ses-symbol-range macro to get cell symbols instead of cell values, it would be quite easy to define it as follows:
(defmacro ses-symbol-range (from to &rest rest)
`(ses-range-engine
#'ses-cell--symbol
(quote ,from) (quote ,to) ,(and rest `(quote ,rest))))
FYI information, the ses-select is now a function, no longer a macro, so it does not expand to a (list …) form containing symbols that by evaluation gets a list of values, but directly returns the list of values. I have no idea what the use of having this expansion to (list CELL-SYMBOLS) was, this seemed over-complex to me for no use. Also, ses-select used to revert the symbol order, and I have changed that too.
Any brickbats, questions, comments, etc… welcome,
Vincent.
[https://res-h3.public.cdn.office.net/assets/mail/file-icon/png/generic_16x16.png]ses.el<https://1drv.ms/u/s!AkDIBBjRAOVwg3mnxH-UZJjXCV9n>
________________________________
De : Vincent Belaïche <vincent.b.1@hotmail.fr>
Envoyé : dimanche 24 décembre 2023 22:13
À : andrés ramírez <rrandresf@hotmail.com>
Cc : emacs-devel <emacs-devel@gnu.org>; boruch_baum@gmx.com <boruch_baum@gmx.com>
Objet : RE: using ses programatically (was: a ses question)
Thank you Andrès for the feedback,
I have just pushed to master the improvement in ses+ documentation, and two other fixes. One is just an optimisation of ses-insert-row that was not really optimizing anything, and the other is about ses-formula-record, that was not recording anything, so the ' (ses-read-symbol) auto completion was not working.
Vincent.
PS : Now the head of my dev branch is this [https://res-h3.public.cdn.office.net/assets/mail/file-icon/png/generic_16x16.png] ses.el<https://1drv.ms/u/s!AkDIBBjRAOVwg3hvsaDmTB8gD2ak>
________________________________
De : andrés ramírez <rrandresf@hotmail.com>
Envoyé : dimanche 24 décembre 2023 16:44
À : Vincent Belaïche <vincent.b.1@hotmail.fr>
Cc : emacs-devel <emacs-devel@gnu.org>; boruch_baum@gmx.com <boruch_baum@gmx.com>
Objet : Re: using ses programatically (was: a ses question)
Hi. Vincent.
>>>>> "Vincent" == Vincent Belaïche <vincent.b.1@hotmail.fr> writes:
Vincent> Hello Andrès,
Vincent> That is a good point that ses+ needs better documentation : I attached an update of
Vincent> ses.texi, [cid:55adc5ac-b103-461e-8604-536c90cae07a]
Vincent> ses.texi.diff<https://1drv.ms/u/s!AkDIBBjRAOVwg3ZPAidBAE7SrkLK>[cid:240f77ca-5cdb-40fb-b4c2-ee89a0eba1d4]ses.texi<https://1drv.ms/u/s!AkDIBBjRAOVwg3UshpzT9ZLCIiDf>.
Vincent> Do you think it is OK ?
The documentation change is Ok.
Vincent> Concerning the ses-setq and change of ses-range, I realized that this makes a
Vincent> regression on ses-insert-range and ses-select, I have made a fix to ses-insert-range
Vincent> here : [cid:c43f099d-1b5e-4b57-a9f0-7feb40546350]
Vincent> ses.el<https://1drv.ms/u/s!AkDIBBjRAOVwg3f1R7Le1n3L7qVe>, I still need to fix
Vincent> ses-select, since this is not a macro I use, it will take me some more time. Also,
Vincent> documenting this and writing tests is still needed before I merge my local dev branch
Vincent> to master.
Take your time. And let me know when that part is completed.
Andrés Ramírez
ps: I have a second case (improvement) for discussion (about keyboard
macros and ses)
[-- Attachment #2: Type: text/html, Size: 10452 bytes --]
prev parent reply other threads:[~2023-12-27 17:42 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <SJ1PR12MB6363EAEDEA36DA78E736B9DEA61EA@SJ1PR12MB6363.namprd12.prod.outlook.com>
2023-10-29 16:43 ` a ses question Vincent Belaïche
2023-10-29 21:25 ` Vincent Belaïche
2023-10-30 5:43 ` Vincent Belaïche
2023-10-30 19:03 ` andrés ramírez
2023-11-01 19:08 ` Vincent Belaïche
2023-11-01 19:23 ` Vincent Belaïche
2023-11-02 11:20 ` Vincent Belaïche
2023-11-02 11:27 ` Vincent Belaïche
2023-11-02 11:31 ` Vincent Belaïche
2023-11-02 18:19 ` Stefan Monnier
2023-11-03 15:54 ` Vincent Belaïche
2023-11-03 22:13 ` Vincent Belaïche
2023-11-04 13:46 ` andrés ramírez
[not found] ` <SJ1PR12MB636334BD471403C3F936BF25A6A4A@SJ1PR12MB6363.namprd12.prod.outlook.com>
2023-11-05 10:25 ` using ses programatically (was: a ses question) Vincent Belaïche
2023-11-05 14:58 ` andrés ramírez
2023-11-05 16:55 ` Vincent Belaïche
2023-11-05 19:33 ` andrés ramírez
2023-11-18 22:55 ` Vincent Belaïche
2023-11-19 19:24 ` andrés ramírez
2023-11-19 23:18 ` Vincent Belaïche
2023-11-19 23:24 ` Vincent Belaïche
2023-11-20 0:33 ` andrés ramírez
2023-12-24 11:51 ` Vincent Belaïche
2023-12-24 15:44 ` andrés ramírez
2023-12-24 21:13 ` Vincent Belaïche
2023-12-27 17:42 ` Vincent Belaïche [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=PAXP192MB1608F78598D2AB72F9D9AD9E849FA@PAXP192MB1608.EURP192.PROD.OUTLOOK.COM \
--to=vincent.b.1@hotmail.fr \
--cc=Thomas.Gehrlein@t-online.de \
--cc=anash@san.rr.com \
--cc=boruch_baum@gmx.com \
--cc=c.f.a.johnson@rogers.com \
--cc=christoph.conrad@gmx.de \
--cc=cyberbob@redneck.gacracker.org \
--cc=emacs-devel@gnu.org \
--cc=epameinondas@gmx.de \
--cc=fischman@zion.bpnetworks.com \
--cc=jotto@pobox.com \
--cc=juri@jurta.org \
--cc=lyusong@hotmail.com \
--cc=maierh@myself.com \
--cc=pinard@iro.umontreal.ca \
--cc=ppinto@cs.cmu.edu \
--cc=rms@gnu.org \
--cc=rrandresf@hotmail.com \
--cc=syver-en@online.no \
--cc=teirllm@dms.auburn.edu \
--cc=xsteve@riic.at \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.