]> git.eshelyaron.com Git - emacs.git/commit
Improve error messages for improper plists (Bug#27726)
authorPhilipp Stephani <phst@google.com>
Sat, 2 Sep 2017 19:08:04 +0000 (21:08 +0200)
committerPhilipp Stephani <phst@google.com>
Sat, 2 Sep 2017 19:08:04 +0000 (21:08 +0200)
commit71766a45f1edb02ec5107803a7f7a8e17809b093
treea2b5f8d72f6a6213646814fa0c6c8556617b23ea
parentdbe1e55dc4064e82813f6b84ee4297d8fc45b2fc
Improve error messages for improper plists (Bug#27726)

* src/fns.c (Fplist_put, Flax_plist_get, Flax_plist_put)
(Fplist_member, syms_of_fns): Use ‘plistp’ as pseudo-predicate for
improper plists instead of ‘listp.’

* test/src/fns-tests.el (plist-get/odd-number-of-elements)
(lax-plist-get/odd-number-of-elements)
(plist-put/odd-number-of-elements)
(lax-plist-put/odd-number-of-elements)
(plist-member/improper-list): Add unit tests.
src/fns.c
test/src/fns-tests.el