From d57c286eea2c3bc69e8aeac6c4a1458625032a73 Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Tue, 6 Nov 2012 22:14:27 -0500 Subject: [PATCH] * lisp/emacs-lisp/cl.el (defsetf): Pass the third arg to gv-define-simple-setter. Fixes: debbugs:12812 --- lisp/ChangeLog | 5 +++++ lisp/emacs-lisp/cl.el | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index e89af026c66..b88baaa2f0a 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2012-11-07 Stefan Monnier + + * emacs-lisp/cl.el (defsetf): Pass the third arg to + gv-define-simple-setter (bug#12812). + 2012-11-06 Stefan Monnier * woman.el (woman-decode-region): Disable adaptive-fill when rendering diff --git a/lisp/emacs-lisp/cl.el b/lisp/emacs-lisp/cl.el index d3ef83961e2..52567f34278 100644 --- a/lisp/emacs-lisp/cl.el +++ b/lisp/emacs-lisp/cl.el @@ -597,7 +597,7 @@ Example: (cl-function (lambda (,@(car args) ,@arg1) ,@(cdr args))) do args))) - `(gv-define-simple-setter ,name ,arg1))) + `(gv-define-simple-setter ,name ,arg1 ,(car args)))) ;; FIXME: CL used to provide a setf method for `apply', but I haven't been able ;; to find a case where it worked. The code below tries to handle it as well. -- 2.39.5