diff options
author | Kenichi Handa <handa@gnu.org> | 2012-11-27 22:03:42 +0900 |
---|---|---|
committer | Kenichi Handa <handa@gnu.org> | 2012-11-27 22:03:42 +0900 |
commit | 45d0fdd8f0a7e4679931a9703fd0bb715552288b (patch) | |
tree | 2bef73a476ad16ccf423616795ad71884944f6c0 /lisp/emacs-lisp/bytecomp.el | |
parent | 2aaec2d9be5cec44ea3b59cba476fd3e091f2fc9 (diff) | |
parent | 026822f9666e1ff2830a561c7f26c50099d2a6ff (diff) | |
download | emacs-45d0fdd8f0a7e4679931a9703fd0bb715552288b.tar.gz emacs-45d0fdd8f0a7e4679931a9703fd0bb715552288b.tar.bz2 emacs-45d0fdd8f0a7e4679931a9703fd0bb715552288b.zip |
merge trunk
Diffstat (limited to 'lisp/emacs-lisp/bytecomp.el')
-rw-r--r-- | lisp/emacs-lisp/bytecomp.el | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el index 60036c86dc0..5867cfb7064 100644 --- a/lisp/emacs-lisp/bytecomp.el +++ b/lisp/emacs-lisp/bytecomp.el @@ -1748,6 +1748,9 @@ The value is non-nil if there were no errors, nil if errors." ;; There may be a file local variable setting (bug#10419). (setq buffer-read-only nil filename buffer-file-name)) + ;; Don't inherit lexical-binding from caller (bug#12938). + (unless (local-variable-p 'lexical-binding) + (setq-local lexical-binding nil)) ;; Set the default directory, in case an eval-when-compile uses it. (setq default-directory (file-name-directory filename))) ;; Check if the file's local variables explicitly specify not to |