• Stefan Monnier's avatar
    * lisp/emacs-lisp/map.el: Avoid special casing lists. · 55838e4e
    Stefan Monnier authored
    (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.
    55838e4e
NEWS 55 KB