Check that variable lists are actually lists
commit9c4e3097b595c739bb29261759b9ba631431329e
authorPhilipp Stephani <phst@google.com>
Wed, 18 Jan 2017 18:49:58 +0000 (18 19:49 +0100)
committerPhilipp Stephani <phst@google.com>
Thu, 19 Jan 2017 16:17:50 +0000 (19 17:17 +0100)
treec1b3bf8f62a29dd9289fea6f7342b7765b3d70a8
parent8c0fcaf66733f0538a3f024f383cb34a3c93d73c
Check that variable lists are actually lists

'let' and 'let*' document that their first argument has to be a list,
but don't check for that; instead, they allow (and silently ignore)
other types.  Introduce an explicit type check.

* src/eval.c (Flet, FletX): Check that the variable list is indeed a
list.
* test/src/eval-tests.el: Add unit tests.
src/eval.c
test/src/eval-tests.el