diff options
| author | Mattias EngdegÄrd | 2024-04-03 11:28:49 +0200 |
|---|---|---|
| committer | Mattias EngdegÄrd | 2024-04-03 11:28:49 +0200 |
| commit | fa9791fe6af2bbedf1f5bb3e7dd8879a0191ebf1 (patch) | |
| tree | 21844cb594880d04be1c440081970892a46bcf4f | |
| parent | 0c55261971b0fea62a8e94204e544ff8af714a2e (diff) | |
| download | emacs-fa9791fe6af2bbedf1f5bb3e7dd8879a0191ebf1.tar.gz emacs-fa9791fe6af2bbedf1f5bb3e7dd8879a0191ebf1.zip | |
Revert "Check if lexical-binding is enabled before warning"
This reverts commit 7de192680fdac6938f5704aea0310b85b0da9c5e.
The logic is wrong (bug#70068).
| -rw-r--r-- | lisp/emacs-lisp/bytecomp.el | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el index 3af7ede4c8e..5cff86784f0 100644 --- a/lisp/emacs-lisp/bytecomp.el +++ b/lisp/emacs-lisp/bytecomp.el | |||
| @@ -2234,8 +2234,7 @@ See also `emacs-lisp-byte-compile-and-load'." | |||
| 2234 | (setq buffer-read-only nil | 2234 | (setq buffer-read-only nil |
| 2235 | filename buffer-file-name)) | 2235 | filename buffer-file-name)) |
| 2236 | ;; Don't inherit lexical-binding from caller (bug#12938). | 2236 | ;; Don't inherit lexical-binding from caller (bug#12938). |
| 2237 | (unless (or (local-variable-p 'lexical-binding) | 2237 | (unless (local-variable-p 'lexical-binding) |
| 2238 | (null lexical-binding)) | ||
| 2239 | (let ((byte-compile-current-buffer (current-buffer))) | 2238 | (let ((byte-compile-current-buffer (current-buffer))) |
| 2240 | (displaying-byte-compile-warnings | 2239 | (displaying-byte-compile-warnings |
| 2241 | (byte-compile-warn-x | 2240 | (byte-compile-warn-x |