From: Gerd Möllmann Date: Tue, 31 Oct 2023 12:46:19 +0000 (+0100) Subject: Merge remote-tracking branch 'origin/master' into scratch/pkg X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Fscratch%2Fpkg;p=emacs.git Merge remote-tracking branch 'origin/master' into scratch/pkg --- ec4bdca49247f70cf138b4b2d12de1e110ea5778 diff --cc lisp/emacs-lisp/bytecomp.el index 17d99c6c51c,cc68db73c9f..31f513ec91b --- a/lisp/emacs-lisp/bytecomp.el +++ b/lisp/emacs-lisp/bytecomp.el @@@ -2201,9 -2201,11 +2201,13 @@@ See also `emacs-lisp-byte-compile-and-l filename buffer-file-name)) ;; Don't inherit lexical-binding from caller (bug#12938). (unless (local-variable-p 'lexical-binding) + (let ((byte-compile-current-buffer (current-buffer))) + (byte-compile-warn-x + (position-symbol 'a (point-min)) + "file has no `lexical-binding' directive on its first line")) (setq-local lexical-binding nil)) + (unless (local-variable-p 'symbol-packages) + (setq-local symbol-packages 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