[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: master ae4171efdc6: Support numeric indexing in let-alist
From: |
Robert Pluim |
Subject: |
Re: master ae4171efdc6: Support numeric indexing in let-alist |
Date: |
Thu, 19 Sep 2024 10:13:44 +0200 |
>>>>> 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
--
- Re: master ae4171efdc6: Support numeric indexing in let-alist,
Robert Pluim <=