* Re: master ae4171efdc6: Support numeric indexing in let-alist
[not found] ` <20240919015606.13874C410F1@vcs2.savannah.gnu.org>
@ 2024-09-19 8:13 ` Robert Pluim
0 siblings, 0 replies; only message 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] only message in thread
only message in thread, other threads:[~2024-09-19 8:13 UTC | newest]
Thread overview: (only message) (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
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.