]> code.delx.au - gnu-emacs/commit
Fix a false negative in `map-elt' with alists and values being nil
authorNicolas Petton <nicolas@petton.fr>
Sat, 25 Apr 2015 10:07:12 +0000 (12:07 +0200)
committerNicolas Petton <nicolas@petton.fr>
Sat, 25 Apr 2015 10:07:12 +0000 (12:07 +0200)
commit62879799ea0272f2ed3067252f20afb910bce352
treea1807809cd3c548076182440975f4eb97d20df2f
parenteea2e831381a7b33ecfcd1c4dfee725a917befd3
Fix a false negative in `map-elt' with alists and values being nil

* lisp/emacs-lisp/map.el (map-elt): If map is an alist and key is
found but its associated value is nil, do not return the default
value.

* test/automated/map-tests.el: Add a regression test.
lisp/emacs-lisp/map.el
test/automated/map-tests.el