summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2008-04-03 13:42:25 +0000
committerStefan Monnier <monnier@iro.umontreal.ca>2008-04-03 13:42:25 +0000
commitcb7d9531e7dd987e57ba354b2d5af26022e51e5d (patch)
tree8f452eff4a8a27261c2e98f403a6e417573c5b50 /lisp/emacs-lisp
parent882e82db4d8521110941ea9bb30dc9d70c1919d6 (diff)
downloademacs-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.el2
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)