Function: native-compile-async

native-compile-async is an autoloaded and byte-compiled function defined in comp-run.el.gz.

Signature

(native-compile-async FILES &optional RECURSIVELY LOAD SELECTOR)

Documentation

Compile FILES asynchronously.

FILES is one file or a list of filenames or directories.

If optional argument RECURSIVELY is non-nil, recurse into subdirectories of given directories.

If optional argument LOAD is non-nil, request to load the file after compiling.

The optional argument SELECTOR has the following valid values:

nil -- Select all files. a string -- A regular expression selecting files with matching names. a function -- A function selecting files with matching names.

The variable native-comp-async-jobs-number specifies the number of (commands) to run simultaneously.

View in manual

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/comp-run.el.gz
;;;###autoload
(defun native-compile-async (files &optional recursively load selector)
  "Compile FILES asynchronously.
FILES is one file or a list of filenames or directories.

If optional argument RECURSIVELY is non-nil, recurse into
subdirectories of given directories.

If optional argument LOAD is non-nil, request to load the file
after compiling.

The optional argument SELECTOR has the following valid values:

nil -- Select all files.
a string -- A regular expression selecting files with matching names.
a function -- A function selecting files with matching names.

The variable `native-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 files recursively load selector)))