]> git.eshelyaron.com Git - emacs.git/commitdiff
do not compile automatically autoloads
authorAndrea Corallo <akrl@sdf.org>
Tue, 12 Nov 2019 22:44:02 +0000 (23:44 +0100)
committerAndrea Corallo <akrl@sdf.org>
Wed, 1 Jan 2020 10:38:04 +0000 (11:38 +0100)
lisp/emacs-lisp/comp.el

index 1acb97d1e0ad9b8ddd644c9da2782a4639398f68..8ee35b031146f3184f982735ef85ff73fce02929 100644 (file)
@@ -1767,9 +1767,10 @@ Prepare every function for final compilation and drive the C back-end."
 (defun comp-to-file-p (file)
   "Return t if FILE has to be compiled."
   (let ((compiled-f (concat file "n")))
-    (or comp-always-compile
-        (not (and (file-exists-p compiled-f)
-                  (file-newer-than-file-p compiled-f file))))))
+    (and (null (string-match-p "autoloads.el" file))
+         (or comp-always-compile
+             (not (and (file-exists-p compiled-f)
+                       (file-newer-than-file-p compiled-f file)))))))
 
 (defun comp-start-async-worker ()
   "Start an async compiler worker."