aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorStefan Monnier2018-12-20 08:40:43 -0500
committerStefan Monnier2018-12-20 08:40:43 -0500
commitf68f2eb47280cf92fdb41548e40b37e7a4a81e53 (patch)
tree069f12113b34c54c7b81f4dd388740b3f18458b5 /etc
parent6a3c5f415b15531751dbbe4686950dbc15927866 (diff)
downloademacs-f68f2eb47280cf92fdb41548e40b37e7a4a81e53.tar.gz
emacs-f68f2eb47280cf92fdb41548e40b37e7a4a81e53.zip
* 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.
Diffstat (limited to 'etc')
-rw-r--r--etc/NEWS1
1 files changed, 1 insertions, 0 deletions
diff --git a/etc/NEWS b/etc/NEWS
index bc76bec2d75..7ff4aee64b5 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -305,6 +305,7 @@ the node "(emacs) Directory Variables" of the user manual.
305* Changes in Specialized Modes and Packages in Emacs 27.1 305* Changes in Specialized Modes and Packages in Emacs 27.1
306 306
307** map.el 307** map.el
308*** Now also understands plists
308*** Now defined via generic functions that can be extended via cl-defmethod. 309*** Now defined via generic functions that can be extended via cl-defmethod.
309*** Deprecate the 'map-put' macro in favor of a new 'map-put!' function. 310*** Deprecate the 'map-put' macro in favor of a new 'map-put!' function.
310*** 'map-contains-key' now returns a boolean rather than the key. 311*** 'map-contains-key' now returns a boolean rather than the key.