]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/emacs-lisp/cl-extra.el (cl-getf): Return the proper value in
authorStefan Monnier <monnier@iro.umontreal.ca>
Wed, 15 May 2013 02:00:07 +0000 (22:00 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Wed, 15 May 2013 02:00:07 +0000 (22:00 -0400)
the setter.

Fixes: debbugs:14387
lisp/ChangeLog
lisp/emacs-lisp/cl-extra.el
lisp/emacs-lisp/cl-loaddefs.el

index a93b2868933138a83d556b61e9d4fae10908b1eb..6c5de802fd50254090f4c2062d58abafc6185fad 100644 (file)
@@ -1,5 +1,8 @@
 2013-05-15  Stefan Monnier  <monnier@iro.umontreal.ca>
 
+       * emacs-lisp/cl-extra.el (cl-getf): Return the proper value in
+       the setter (bug#14387).
+
        * progmodes/f90.el (f90-blocks-re): Include the terminating \> in the
        surrounding group (bug#14402).
 
index 34892bf2fef29d9e0878a7272695a285727726b3..70ad1283cb213d14ecb7e05259a6448b9e625074 100644 (file)
@@ -597,8 +597,11 @@ PROPLIST is a list of the sort returned by `symbol-plist'.
                   (macroexp-let2 nil d def
                     (funcall do `(cl-getf ,getter ,k ,d)
                              (lambda (v)
-                               (funcall setter
-                                        `(cl--set-getf ,getter ,k ,v))))))))))
+                               (macroexp-let2 nil val v
+                                 `(progn
+                                    ,(funcall setter
+                                              `(cl--set-getf ,getter ,k ,val))
+                                    ,val))))))))))
   (setplist '--cl-getf-symbol-- plist)
   (or (get '--cl-getf-symbol-- tag)
       ;; Originally we called cl-get here,
index 9f79c6c99dfdd27410cf0fc483ef0ce2b19b99af..af19db63f30b68e5c219dfcabe46fc851b8ee345 100644 (file)
@@ -11,7 +11,7 @@
 ;;;;;;  cl--map-overlays cl--map-intervals cl--map-keymap-recursively
 ;;;;;;  cl-notevery cl-notany cl-every cl-some cl-mapcon cl-mapcan
 ;;;;;;  cl-mapl cl-mapc cl-maplist cl-map cl--mapcar-many cl-equalp
-;;;;;;  cl-coerce) "cl-extra" "cl-extra.el" "c5730f2a706cb1efc5fec0a790d3ca72")
+;;;;;;  cl-coerce) "cl-extra" "cl-extra.el" "011111887a1f353218e59e14d0b09c68")
 ;;; Generated autoloads from cl-extra.el
 
 (autoload 'cl-coerce "cl-extra" "\