aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorStefan Monnier2018-12-17 14:51:01 -0500
committerStefan Monnier2018-12-17 14:51:01 -0500
commit55838e4e6a176317367c6759e0520395e80c856f (patch)
tree49f0293f48e1084e076a936e8b3476f35efe7cf5 /etc
parent2c3f7f9c45985c36fd9e86c334b49b10e8c8c270 (diff)
downloademacs-55838e4e6a176317367c6759e0520395e80c856f.tar.gz
emacs-55838e4e6a176317367c6759e0520395e80c856f.zip
* lisp/emacs-lisp/map.el: Avoid special casing lists.
(map-not-inplace, map-inplace): New errors. (map-insert): New generic function. (map-put!): Signal map-not-inplace rather than a generic 'error'. (map-elt): Use map-not-inplace and map-insert to avoid hardcoding a special case for lists. * test/lisp/emacs-lisp/map-tests.el (test-map-put!): Rename from test-map-put. Also test the errors signaled.
Diffstat (limited to 'etc')
-rw-r--r--etc/NEWS3
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/NEWS b/etc/NEWS
index 327276eef9b..95647bbda4f 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -307,8 +307,9 @@ the node "(emacs) Directory Variables" of the user manual.
307** map.el 307** map.el
308*** Now defined via generic functions that can be extended via cl-defmethod. 308*** 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. 309*** 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. 310*** 'map-contains-key' now returns a boolean rather than the key.
311*** Deprecate the 'testfn' args of 'map-elt' and 'map-contains-key'. 311*** Deprecate the 'testfn' args of 'map-elt' and 'map-contains-key'.
312*** New generic function 'map-insert'.
312 313
313--- 314---
314** Follow mode 315** Follow mode