]> git.eshelyaron.com Git - emacs.git/commit
* lisp/emacs-lisp/map.el: Add support for plists
authorStefan Monnier <monnier@iro.umontreal.ca>
Thu, 20 Dec 2018 13:40:43 +0000 (08:40 -0500)
committerStefan Monnier <monnier@iro.umontreal.ca>
Thu, 20 Dec 2018 13:40:43 +0000 (08:40 -0500)
commitf68f2eb47280cf92fdb41548e40b37e7a4a81e53
tree069f12113b34c54c7b81f4dd388740b3f18458b5
parent6a3c5f415b15531751dbbe4686950dbc15927866
* lisp/emacs-lisp/map.el: Add support for plists

(map--plist-p, map--plist-delete): New functions.
(map-elt, map-delete, map-length, map-into, map-put!, map-insert)
(map-apply, map-do): Handle the plist case.

* test/lisp/emacs-lisp/map-tests.el (with-maps-do): Add sample plist.
(test-map-put!): The behavior of map-put! is not the same for plists as
for alists.
etc/NEWS
lisp/emacs-lisp/map.el
test/lisp/emacs-lisp/map-tests.el