From bbca48fe464edeb313f14c99fe8c10b8a98017c4 Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Sun, 22 May 2011 22:15:17 -0300 Subject: [PATCH] * lisp/emacs-lisp/bytecomp.el (byte-compile-function-form): Only call byte-compile-lambda if it's actually a lambda. --- lisp/ChangeLog | 3 +++ lisp/emacs-lisp/bytecomp.el | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 726f41496e..f246b8a895 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,8 @@ 2011-05-23 Stefan Monnier + * emacs-lisp/bytecomp.el (byte-compile-function-form): Only call + byte-compile-lambda if it's actually a lambda. + * emacs-lisp/eieio.el (eieio-defgeneric-form-primary-only-one): Fix function quoting. Use backquote better. diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el index 49b39b6a1f..f0f59123aa 100644 --- a/lisp/emacs-lisp/bytecomp.el +++ b/lisp/emacs-lisp/bytecomp.el @@ -3525,9 +3525,9 @@ discarding." ;; and (funcall (function foo)) will lose with autoloads. (defun byte-compile-function-form (form) - (byte-compile-constant (if (symbolp (nth 1 form)) - (nth 1 form) - (byte-compile-lambda (nth 1 form))))) + (byte-compile-constant (if (eq 'lambda (car-safe (nth 1 form))) + (byte-compile-lambda (nth 1 form)) + (nth 1 form)))) (defun byte-compile-indent-to (form) (let ((len (length form))) -- 2.20.1