From d8f3f8736c7d36b220a478f98deae9f82f25a4f7 Mon Sep 17 00:00:00 2001 From: Andrea Corallo Date: Tue, 12 Nov 2019 23:44:02 +0100 Subject: [PATCH] do not compile automatically autoloads --- lisp/emacs-lisp/comp.el | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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." -- 2.39.5