Do not signal an error when trying to delete a key from an array
commitd75151a671dcdc1cac8c6ab1a47520bae4872d70
authorNicolas Petton <nicolas@petton.fr>
Fri, 24 Apr 2015 17:29:59 +0000 (24 19:29 +0200)
committerNicolas Petton <nicolas@petton.fr>
Fri, 24 Apr 2015 17:29:59 +0000 (24 19:29 +0200)
tree0b680ef21bb81cf0f3e0bce37426545f5f1d056b
parent79d9757c2334364a78a2e40b75d8d4e96161a911
Do not signal an error when trying to delete a key from an array

* lisp/emacs-lisp/map.el (map-delete): When map is an array, check if
the key is present to avoid signaling an error.

* test/automated/map-tests.el: Add a test for deleting non-existing
keys from maps.
lisp/emacs-lisp/map.el
test/automated/map-tests.el