(defsetf): Accept a lambda for the 2-arg form.

This commit is contained in:
Stefan Monnier 2008-04-03 13:42:25 +00:00
parent 882e82db4d
commit cb7d9531e7
2 changed files with 3 additions and 1 deletions

View file

@ -1619,7 +1619,7 @@ Example:
(defsetf nth (n x) (v) (list 'setcar (list 'nthcdr n x) v))
\(fn NAME [FUNC | ARGLIST (STORE) BODY...])"
(if (listp arg1)
(if (and (listp arg1) (consp args))
(let* ((largs nil) (largsr nil)
(temps nil) (tempsr nil)
(restarg nil) (rest-temps nil)