(string-match-p re file))
comp-deferred-compilation-deny-list))))
-(defun native--compile-async (paths &optional recursively load selector)
- "Compile PATHS asynchronously.
-PATHS is one path or a list of paths to files or directories.
+(defun native--compile-async (files &optional recursively load selector)
+ "Compile FILES asynchronously.
+FILES is one path or a list of files to files or directories.
If optional argument RECURSIVELY is non-nil, recurse into
subdirectories of given directories.
(comp-ensure-native-compiler)
(unless (member load '(nil t late))
(error "LOAD must be nil, t or 'late"))
- (unless (listp paths)
- (setf paths (list paths)))
+ (unless (listp files)
+ (setf files (list files)))
(let (files)
- (dolist (path paths)
+ (dolist (path files)
(cond ((file-directory-p path)
(dolist (file (if recursively
(directory-files-recursively
(rename-file tempfile target-file t))))))
;;;###autoload
-(defun native-compile-async (paths &optional recursively load selector)
- "Compile PATHS asynchronously.
-PATHS is one path or a list of paths to files or directories.
+(defun native-compile-async (files &optional recursively load selector)
+ "Compile FILES asynchronously.
+FILES is one path or a list of files to files or directories.
If optional argument RECURSIVELY is non-nil, recurse into
subdirectories of given directories.
of (commands) to run simultaneously."
;; Normalize: we only want to pass t or nil, never e.g. `late'.
(let ((load (not (not load))))
- (native--compile-async paths recursively load selector)))
+ (native--compile-async files recursively load selector)))
(provide 'comp)