[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
feature/native-comp 81b1013 1/3: * Don't use paths to indicate filenames
From: |
Andrea Corallo |
Subject: |
feature/native-comp 81b1013 1/3: * Don't use paths to indicate filenames |
Date: |
Mon, 22 Feb 2021 14:49:49 -0500 (EST) |
branch: feature/native-comp
commit 81b1013555363be1513a13f5f07ee50041969dfa
Author: Andrea Corallo <akrl@sdf.org>
Commit: Andrea Corallo <akrl@sdf.org>
* Don't use paths to indicate filenames
* lisp/emacs-lisp/comp.el (native--compile-async)
(native-compile-async): Replace `paths' argname with `files'.
---
lisp/emacs-lisp/comp.el | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/lisp/emacs-lisp/comp.el b/lisp/emacs-lisp/comp.el
index 60c0409..677e6a7 100644
--- a/lisp/emacs-lisp/comp.el
+++ b/lisp/emacs-lisp/comp.el
@@ -3943,9 +3943,9 @@ LOAD and SELECTOR work as described in
`native--compile-async'."
(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.
@@ -3974,10 +3974,10 @@ bytecode definition was not changed in the meanwhile)."
(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
@@ -4057,9 +4057,9 @@ environment variable 'NATIVE_DISABLED' is set byte
compile only."
(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.
@@ -4077,7 +4077,7 @@ The variable `comp-async-jobs-number' specifies the number
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)