]> git.eshelyaron.com Git - emacs.git/commitdiff
Don't inherit package-prefixes when byte-compiling
authorGerd Möllmann <gerd@gnu.org>
Wed, 19 Jul 2023 13:53:11 +0000 (15:53 +0200)
committerGerd Möllmann <gerd@gnu.org>
Wed, 19 Jul 2023 13:53:11 +0000 (15:53 +0200)
* lisp/emacs-lisp/bytecomp.el (byte-compile-file): Treat
package-prefixes like lexical-binding.

lisp/emacs-lisp/bytecomp.el

index 75ca482c36b95e6e550806a6d318ed549add4732..e65e7a313b613c98c4f70372ae0a2a5798e43184 100644 (file)
@@ -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