mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-06 06:20:55 -08:00
Revert "Check if lexical-binding is enabled before warning"
This reverts commit 7de192680f.
The logic is wrong (bug#70068).
This commit is contained in:
parent
0c55261971
commit
fa9791fe6a
1 changed files with 1 additions and 2 deletions
|
|
@ -2234,8 +2234,7 @@ See also `emacs-lisp-byte-compile-and-load'."
|
||||||
(setq buffer-read-only nil
|
(setq buffer-read-only nil
|
||||||
filename buffer-file-name))
|
filename buffer-file-name))
|
||||||
;; Don't inherit lexical-binding from caller (bug#12938).
|
;; Don't inherit lexical-binding from caller (bug#12938).
|
||||||
(unless (or (local-variable-p 'lexical-binding)
|
(unless (local-variable-p 'lexical-binding)
|
||||||
(null lexical-binding))
|
|
||||||
(let ((byte-compile-current-buffer (current-buffer)))
|
(let ((byte-compile-current-buffer (current-buffer)))
|
||||||
(displaying-byte-compile-warnings
|
(displaying-byte-compile-warnings
|
||||||
(byte-compile-warn-x
|
(byte-compile-warn-x
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue