From: Gerd Möllmann Date: Wed, 19 Jul 2023 13:53:11 +0000 (+0200) Subject: Don't inherit package-prefixes when byte-compiling X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e6073e0bd972fd4871aa76e24dcb4ae991812c5c;p=emacs.git Don't inherit package-prefixes when byte-compiling * lisp/emacs-lisp/bytecomp.el (byte-compile-file): Treat package-prefixes like lexical-binding. --- 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