diff options
author | Stefan Monnier <monnier@iro.umontreal.ca> | 2018-12-17 14:51:01 -0500 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2018-12-17 14:51:01 -0500 |
commit | 55838e4e6a176317367c6759e0520395e80c856f (patch) | |
tree | 49f0293f48e1084e076a936e8b3476f35efe7cf5 /test/lisp/emacs-lisp/seq-tests.el | |
parent | 2c3f7f9c45985c36fd9e86c334b49b10e8c8c270 (diff) | |
download | emacs-55838e4e6a176317367c6759e0520395e80c856f.tar.gz emacs-55838e4e6a176317367c6759e0520395e80c856f.tar.bz2 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 'test/lisp/emacs-lisp/seq-tests.el')
0 files changed, 0 insertions, 0 deletions