diff options
author | Stefan Monnier <monnier@iro.umontreal.ca> | 2008-04-03 13:42:25 +0000 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2008-04-03 13:42:25 +0000 |
commit | cb7d9531e7dd987e57ba354b2d5af26022e51e5d (patch) | |
tree | 8f452eff4a8a27261c2e98f403a6e417573c5b50 /lisp/emacs-lisp | |
parent | 882e82db4d8521110941ea9bb30dc9d70c1919d6 (diff) | |
download | emacs-cb7d9531e7dd987e57ba354b2d5af26022e51e5d.tar.gz |
(defsetf): Accept a lambda for the 2-arg form.
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r-- | lisp/emacs-lisp/cl-macs.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/cl-macs.el b/lisp/emacs-lisp/cl-macs.el index 5fea4f6ea49..1b325218934 100644 --- a/lisp/emacs-lisp/cl-macs.el +++ b/lisp/emacs-lisp/cl-macs.el @@ -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) |