diff options
| author | Stefan Monnier | 2012-11-20 14:05:20 -0500 |
|---|---|---|
| committer | Stefan Monnier | 2012-11-20 14:05:20 -0500 |
| commit | 5d0ccd9509a21ef18e60004a4d46e60a916e4a36 (patch) | |
| tree | ca5fc0c1ae8bf5d4a5b7dbe0c695b4c22e8ebacd | |
| parent | 3837d988dd8892064c86ee483c6f09b2bacd7604 (diff) | |
| download | emacs-5d0ccd9509a21ef18e60004a4d46e60a916e4a36.tar.gz emacs-5d0ccd9509a21ef18e60004a4d46e60a916e4a36.zip | |
* lisp/emacs-lisp/bytecomp.el (byte-compile): Fix handling of closures.
| -rw-r--r-- | lisp/ChangeLog | 2 | ||||
| -rw-r--r-- | lisp/emacs-lisp/bytecomp.el | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index edb1a65266e..910cc3522bd 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,7 @@ | |||
| 1 | 2012-11-20 Stefan Monnier <monnier@iro.umontreal.ca> | 1 | 2012-11-20 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 2 | ||
| 3 | * emacs-lisp/bytecomp.el (byte-compile): Fix handling of closures. | ||
| 4 | |||
| 3 | * emacs-lisp/byte-run.el (defun-declarations-alist): Fix last change. | 5 | * emacs-lisp/byte-run.el (defun-declarations-alist): Fix last change. |
| 4 | 6 | ||
| 5 | * subr.el (called-interactively-p-functions): New var. | 7 | * subr.el (called-interactively-p-functions): New var. |
diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el index a325e0f3e44..60036c86dc0 100644 --- a/lisp/emacs-lisp/bytecomp.el +++ b/lisp/emacs-lisp/bytecomp.el | |||
| @@ -2509,8 +2509,8 @@ If FORM is a lambda or a macro, byte-compile it as a function." | |||
| 2509 | (when (symbolp form) | 2509 | (when (symbolp form) |
| 2510 | (unless (memq (car-safe fun) '(closure lambda)) | 2510 | (unless (memq (car-safe fun) '(closure lambda)) |
| 2511 | (error "Don't know how to compile %S" fun)) | 2511 | (error "Don't know how to compile %S" fun)) |
| 2512 | (setq fun (byte-compile--reify-function fun)) | 2512 | (setq lexical-binding (eq (car fun) 'closure)) |
| 2513 | (setq lexical-binding (eq (car fun) 'closure))) | 2513 | (setq fun (byte-compile--reify-function fun))) |
| 2514 | (unless (eq (car-safe fun) 'lambda) | 2514 | (unless (eq (car-safe fun) 'lambda) |
| 2515 | (error "Don't know how to compile %S" fun)) | 2515 | (error "Don't know how to compile %S" fun)) |
| 2516 | ;; Expand macros. | 2516 | ;; Expand macros. |