]> 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 16:17:23 +0000 (17:17 +0100)
commit17d65c99cd812e085d85f790c83ec0d540490a55
tree21bce18eca8f858d3163cc9bcc677543903669a5
parentb01d0246d71a7a3fd92b2864a3c0c0bc9367ee0b
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