[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] /srv/bzr/emacs/trunk r104326: * lisp/emacs-lisp/bytecomp.e
From: |
Stefan Monnier |
Subject: |
[Emacs-diffs] /srv/bzr/emacs/trunk r104326: * lisp/emacs-lisp/bytecomp.el (byte-compile-function-form): Only call |
Date: |
Sun, 22 May 2011 22:15:17 -0300 |
User-agent: |
Bazaar (2.3.1) |
------------------------------------------------------------
revno: 104326
committer: Stefan Monnier <address@hidden>
branch nick: trunk
timestamp: Sun 2011-05-22 22:15:17 -0300
message:
* lisp/emacs-lisp/bytecomp.el (byte-compile-function-form): Only call
byte-compile-lambda if it's actually a lambda.
modified:
lisp/ChangeLog
lisp/emacs-lisp/bytecomp.el
=== modified file 'lisp/ChangeLog'
--- a/lisp/ChangeLog 2011-05-23 00:39:25 +0000
+++ b/lisp/ChangeLog 2011-05-23 01:15:17 +0000
@@ -1,5 +1,8 @@
2011-05-23 Stefan Monnier <address@hidden>
+ * 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.
=== modified file 'lisp/emacs-lisp/bytecomp.el'
--- a/lisp/emacs-lisp/bytecomp.el 2011-05-22 18:22:30 +0000
+++ b/lisp/emacs-lisp/bytecomp.el 2011-05-23 01:15:17 +0000
@@ -3525,9 +3525,9 @@
;; 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)))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] /srv/bzr/emacs/trunk r104326: * lisp/emacs-lisp/bytecomp.el (byte-compile-function-form): Only call,
Stefan Monnier <=