1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-24 07:20:37 +00:00

* lisp/emacs-lisp/bytecomp.el (byte-compile-function-form): Only call

byte-compile-lambda if it's actually a lambda.
This commit is contained in:
Stefan Monnier 2011-05-22 22:15:17 -03:00
parent b1ef1257fe
commit bbca48fe46
2 changed files with 6 additions and 3 deletions

View File

@ -1,5 +1,8 @@
2011-05-23 Stefan Monnier <monnier@iro.umontreal.ca>
* 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.

View File

@ -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)))