Minor improvement in map-elt.
commitf37e265ea992f5799f1bf30a03509444c976df1d
authorNicolas Petton <nicolas@petton.fr>
Fri, 24 Apr 2015 17:06:27 +0000 (24 19:06 +0200)
committerNicolas Petton <nicolas@petton.fr>
Fri, 24 Apr 2015 17:10:45 +0000 (24 19:10 +0200)
tree18946d61e195148201b9aa18e6e6550a6bd8dd53
parent89baf163324c6820ca17e91cda9dc8b162a59eab
Minor improvement in map-elt.

* lisp/emacs-lisp/map.el (map-elt): Do not use `ignore-errors' when
doing a lookup in arrays, but check the boundaries of the array
instead.

* test/automated/map-tests.el: Adds a test for `map-elt' with arrays
and a negative integer as key.
lisp/emacs-lisp/map.el
test/automated/map-tests.el