[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master fa9791fe6af 2/2: Revert "Check if lexical-binding is enabled befo
From: |
Mattias Engdegård |
Subject: |
master fa9791fe6af 2/2: Revert "Check if lexical-binding is enabled before warning" |
Date: |
Wed, 3 Apr 2024 05:31:38 -0400 (EDT) |
branch: master
commit fa9791fe6af2bbedf1f5bb3e7dd8879a0191ebf1
Author: Mattias Engdegård <mattiase@acm.org>
Commit: Mattias Engdegård <mattiase@acm.org>
Revert "Check if lexical-binding is enabled before warning"
This reverts commit 7de192680fdac6938f5704aea0310b85b0da9c5e.
The logic is wrong (bug#70068).
---
lisp/emacs-lisp/bytecomp.el | 3 +--
1 file changed, 1 insertion(+), 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'."
(setq buffer-read-only nil
filename buffer-file-name))
;; Don't inherit lexical-binding from caller (bug#12938).
- (unless (or (local-variable-p 'lexical-binding)
- (null lexical-binding))
+ (unless (local-variable-p 'lexical-binding)
(let ((byte-compile-current-buffer (current-buffer)))
(displaying-byte-compile-warnings
(byte-compile-warn-x