From e6073e0bd972fd4871aa76e24dcb4ae991812c5c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Gerd=20M=C3=B6llmann?= Date: Wed, 19 Jul 2023 15:53:11 +0200 Subject: [PATCH] Don't inherit package-prefixes when byte-compiling * lisp/emacs-lisp/bytecomp.el (byte-compile-file): Treat package-prefixes like lexical-binding. --- lisp/emacs-lisp/bytecomp.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el index 75ca482c36b..e65e7a313b6 100644 --- a/lisp/emacs-lisp/bytecomp.el +++ b/lisp/emacs-lisp/bytecomp.el @@ -2224,7 +2224,8 @@ See also `emacs-lisp-byte-compile-and-load'." ;; Don't inherit lexical-binding from caller (bug#12938). (unless (local-variable-p 'lexical-binding) (setq-local lexical-binding nil)) - ;; PKG-FIXME: Maybe set package-prefixes? + (unless (local-variable-p 'package-prefixes) + (setq-local package-prefixes 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 -- 2.39.2