* lisp/emacs-lisp/pcase.el (pcase--u1): Avoid ((lambda ...) ...).
authorStefan Monnier <monnier@iro.umontreal.ca>
Thu, 17 May 2012 21:40:47 +0000 (17:40 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Thu, 17 May 2012 21:40:47 +0000 (17:40 -0400)
lisp/ChangeLog
lisp/emacs-lisp/pcase.el

index cdb8217..043797b 100644 (file)
@@ -1,5 +1,7 @@
 2012-05-17  Stefan Monnier  <monnier@iro.umontreal.ca>
 
+       * emacs-lisp/pcase.el (pcase--u1): Avoid ((lambda ...) ...).
+
        * emacs-lisp/cl.el: Add edebug specs from cl-specs.el.
        * emacs-lisp/cl-macs.el: Idem.
        * emacs-lisp/cl-specs.el: Remove.
index 28eaa3d..67b1944 100644 (file)
@@ -557,7 +557,8 @@ Otherwise, it defers to REST which is a list of branches of the form
                                         (let ((newsym (make-symbol "x")))
                                           (push (list newsym sym) env)
                                           (setq sym newsym)))
-                                      (if (functionp exp) `(,exp ,sym)
+                                      (if (functionp exp)
+                                          `(funcall #',exp ,sym)
                                         `(,@exp ,sym)))))
                          (if (null vs)
                              call