* Re: master ae4171efdc6: Support numeric indexing in let-alist
[not found] ` <20240919015606.13874C410F1@vcs2.savannah.gnu.org>
@ 2024-09-19 8:13 ` Robert Pluim
2024-09-27 6:53 ` Stefan Kangas
0 siblings, 1 reply; 2+ messages in thread
From: Robert Pluim @ 2024-09-19 8:13 UTC (permalink / raw)
To: Spencer Baugh; +Cc: emacs-devel
>>>>> On Wed, 18 Sep 2024 21:56:05 -0400 (EDT), Stefan Kangas <stefankangas@gmail.com> said:
Stefan> branch: master
Stefan> commit ae4171efdc60dfa53aa404e5926f5165dbf98d59
Stefan> Author: Spencer Baugh <sbaugh@janestreet.com>
Stefan> Commit: Stefan Kangas <stefankangas@gmail.com>
Stefan> Support numeric indexing in let-alist
Stefan> let-alist is very useful. But sometimes an alist contains a list in
Stefan> the middle, which contains yet more alists. Previously, this was
Stefan> somewhat painful to deal with, and required something like:
Stefan> (let-alist alist
Stefan> (let-alist (nth 0 .a)
Stefan> (let-alist (nth 3 .b)
Stefan> .c)))
Stefan> Now, the following works:
Stefan> (let-alist alist
Stefan> .a.0.b.3.c)
Stefan> * lisp/emacs-lisp/let-alist.el (let-alist--access-sexp): Properly
Stefan> parse numbers to handle lists. (Bug#66509)
Stefan> (let-alist--list-to-sexp): Use nth to handle numbers.
Stefan> (let-alist): Update docs.
Would it be possible to update the elisp manual as well (and maybe add
an entry to NEWS)?
Robert
--
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: master ae4171efdc6: Support numeric indexing in let-alist
2024-09-19 8:13 ` master ae4171efdc6: Support numeric indexing in let-alist Robert Pluim
@ 2024-09-27 6:53 ` Stefan Kangas
0 siblings, 0 replies; 2+ messages in thread
From: Stefan Kangas @ 2024-09-27 6:53 UTC (permalink / raw)
To: Robert Pluim, Spencer Baugh; +Cc: emacs-devel
Robert Pluim <rpluim@gmail.com> writes:
>>>>>> On Wed, 18 Sep 2024 21:56:05 -0400 (EDT), Stefan Kangas <stefankangas@gmail.com> said:
>
> Stefan> branch: master
> Stefan> commit ae4171efdc60dfa53aa404e5926f5165dbf98d59
> Stefan> Author: Spencer Baugh <sbaugh@janestreet.com>
> Stefan> Commit: Stefan Kangas <stefankangas@gmail.com>
>
> Stefan> Support numeric indexing in let-alist
>
> Would it be possible to update the elisp manual as well (and maybe add
> an entry to NEWS)?
Sorry for the late reply here. Let's follow this up in the bug report.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-09-27 6:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <172671096567.32154.15554421537956820251@vcs2.savannah.gnu.org>
[not found] ` <20240919015606.13874C410F1@vcs2.savannah.gnu.org>
2024-09-19 8:13 ` master ae4171efdc6: Support numeric indexing in let-alist Robert Pluim
2024-09-27 6:53 ` Stefan Kangas
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).