aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2011-05-22 22:15:17 -0300
committerStefan Monnier2011-05-22 22:15:17 -0300
commitbbca48fe464edeb313f14c99fe8c10b8a98017c4 (patch)
tree479641862c3e1e3b30fe1864cbd3225f14db0e4f
parentb1ef1257fe09bb9c602fc9d488b132896e4d16a9 (diff)
downloademacs-bbca48fe464edeb313f14c99fe8c10b8a98017c4.tar.gz
emacs-bbca48fe464edeb313f14c99fe8c10b8a98017c4.zip
* lisp/emacs-lisp/bytecomp.el (byte-compile-function-form): Only call
byte-compile-lambda if it's actually a lambda.
-rw-r--r--lisp/ChangeLog3
-rw-r--r--lisp/emacs-lisp/bytecomp.el6
2 files changed, 6 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 726f41496e3..f246b8a8951 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,8 @@
12011-05-23 Stefan Monnier <monnier@iro.umontreal.ca> 12011-05-23 Stefan Monnier <monnier@iro.umontreal.ca>
2 2
3 * emacs-lisp/bytecomp.el (byte-compile-function-form): Only call
4 byte-compile-lambda if it's actually a lambda.
5
3 * emacs-lisp/eieio.el (eieio-defgeneric-form-primary-only-one): 6 * emacs-lisp/eieio.el (eieio-defgeneric-form-primary-only-one):
4 Fix function quoting. Use backquote better. 7 Fix function quoting. Use backquote better.
5 8
diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el
index 49b39b6a1f9..f0f59123aa9 100644
--- a/lisp/emacs-lisp/bytecomp.el
+++ b/lisp/emacs-lisp/bytecomp.el
@@ -3525,9 +3525,9 @@ discarding."
3525;; and (funcall (function foo)) will lose with autoloads. 3525;; and (funcall (function foo)) will lose with autoloads.
3526 3526
3527(defun byte-compile-function-form (form) 3527(defun byte-compile-function-form (form)
3528 (byte-compile-constant (if (symbolp (nth 1 form)) 3528 (byte-compile-constant (if (eq 'lambda (car-safe (nth 1 form)))
3529 (nth 1 form) 3529 (byte-compile-lambda (nth 1 form))
3530 (byte-compile-lambda (nth 1 form))))) 3530 (nth 1 form))))
3531 3531
3532(defun byte-compile-indent-to (form) 3532(defun byte-compile-indent-to (form)
3533 (let ((len (length form))) 3533 (let ((len (length form)))