]> git.eshelyaron.com Git - emacs.git/commitdiff
* A cc-mode fix to be compiled correctly once installed
authorAndrea Corallo <akrl@sdf.org>
Sun, 23 Aug 2020 09:31:31 +0000 (11:31 +0200)
committerAndrea Corallo <akrl@sdf.org>
Sun, 23 Aug 2020 10:08:26 +0000 (12:08 +0200)
* lisp/progmodes/cc-bytecomp.el (cc-bytecomp-load): If cc-mode
is not compiled during the initial build (read
NATIVE_FAST_BOOT) it will be when already in el.gz form.

lisp/progmodes/cc-bytecomp.el

index 5eb8af253437aebcba5593f808c5ee087293f530..ad884288a6dbba01e0ff627a40752cfdcb15385f 100644 (file)
@@ -286,7 +286,9 @@ perhaps a `cc-bytecomp-restore-environment' is forgotten somewhere"))
                    (cons cc-file cc-bytecomp-loaded-files))
              (cc-bytecomp-debug-msg
               "cc-bytecomp-load: Loading %S" cc-file)
-             (load cc-file nil t t)
+             ;; native-comp may async compile also intalled el.gz
+             ;; files therefore we may have to load here other el.gz.
+             (load cc-part nil t)
              (cc-bytecomp-debug-msg
               "cc-bytecomp-load: Loaded %S" cc-file)))
          (cc-bytecomp-setup-environment)