From: Andrea Corallo Date: Tue, 12 Nov 2019 22:44:02 +0000 (+0100) Subject: do not compile automatically autoloads X-Git-Tag: emacs-28.0.90~2727^2~1001 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d8f3f8736c7d36b220a478f98deae9f82f25a4f7;p=emacs.git do not compile automatically autoloads --- diff --git a/lisp/emacs-lisp/comp.el b/lisp/emacs-lisp/comp.el index 1acb97d1e0a..8ee35b03114 100644 --- a/lisp/emacs-lisp/comp.el +++ b/lisp/emacs-lisp/comp.el @@ -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."