summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/comp.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/emacs-lisp/comp.el')
-rw-r--r--lisp/emacs-lisp/comp.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/comp.el b/lisp/emacs-lisp/comp.el
index 68d3b8b2c73..c00a68307b0 100644
--- a/lisp/emacs-lisp/comp.el
+++ b/lisp/emacs-lisp/comp.el
@@ -2229,7 +2229,8 @@ of given directories."
((file-exists-p path) (push path files))
(t (signal 'native-compiler-error
(list "Path not a file nor directory" path)))))
- (setf comp-files-queue (nconc files comp-files-queue))
+ (dolist (file files)
+ (add-to-list 'comp-files-queue file t))
(when (zerop (comp-async-runnings))
(comp-run-async-workers))
(message "Compilation started.")))