]> git.eshelyaron.com Git - emacs.git/commit
alist-get: Add optional arg TESTFN
authorTino Calancha <tino.calancha@gmail.com>
Mon, 17 Jul 2017 12:30:50 +0000 (21:30 +0900)
committerTino Calancha <tino.calancha@gmail.com>
Mon, 17 Jul 2017 12:30:50 +0000 (21:30 +0900)
commit76e1f7d00fbff7bf8183ba85db2f67a11aa2d5ce
treeac3d9fbe5fa46dbad70b527355e2f1ba997f36f8
parent4968aa685b85840d79258ff6b61ba2bcfb99e2bc
alist-get: Add optional arg TESTFN

If TESTFN is non-nil, then it is the predicate to lookup
the alist.  Otherwise, use 'eq' (Bug#27584).
* lisp/subr.el (alist-get): Add optional arg FULL.
* lisp/emacs-lisp/map.el (map-elt, map-put): Add optional arg TESTFN.
* lisp/emacs-lisp/gv.el (alist-get): Update expander.
* doc/lispref/lists.texi (Association Lists): Update manual.
* etc/NEWS: Announce the changes.
* test/lisp/emacs-lisp/map-tests.el (test-map-put-testfn-alist)
(test-map-elt-testfn): New tests.
doc/lispref/lists.texi
etc/NEWS
lisp/emacs-lisp/gv.el
lisp/emacs-lisp/map.el
lisp/subr.el
test/lisp/emacs-lisp/map-tests.el