]> git.eshelyaron.com Git - emacs.git/commit
Make let-alist work with vectors
authorLars Ingebrigtsen <larsi@gnus.org>
Sun, 28 Jul 2019 21:28:18 +0000 (23:28 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Sun, 28 Jul 2019 21:28:24 +0000 (23:28 +0200)
commitd7665ae8df47b24d297ed131eb42ebed446423a0
tree0c8a9fbfdb2f2f0f5fc5e8b778c83b4e98013c38
parent776872766cd3af5ef68785236dcc05b378e8f267
Make let-alist work with vectors

* lisp/emacs-lisp/let-alist.el (let-alist--deep-dot-search):
Descend into vectors, too, looking for dotted variables (bug#23244).

Test case:

(let-alist '((a . 1) (b . 2))
  `[,(+ .a) ,(+ .a .b .b)])
lisp/emacs-lisp/let-alist.el
test/lisp/emacs-lisp/let-alist-tests.el