]> git.eshelyaron.com Git - emacs.git/commit
alist-get testfn argument evaluation correction
authorMattias Engdegård <mattiase@acm.org>
Fri, 16 Dec 2022 10:08:02 +0000 (11:08 +0100)
committerMattias Engdegård <mattiase@acm.org>
Fri, 16 Dec 2022 18:18:34 +0000 (19:18 +0100)
commit30d2b72c4124b351026a8a5420686d5dc04ecc61
tree5a64b5e98866d05a1143581b365c3c897ae7fea8
parent8624734504af4572525665c713a47e1b6f439a2c
alist-get testfn argument evaluation correction

* lisp/emacs-lisp/gv.el (alist-get):
Evaluate TESTFN exactly once (previously up to 3 times).
Reduce the macro-expansion to include a call to either assoc or assq,
not both; this reduces the generated code size in some cases.
lisp/emacs-lisp/gv.el