]> git.eshelyaron.com Git - emacs.git/commitdiff
; Improve documentation of 'native-compile-directory' (bug#73303)
authorEli Zaretskii <eliz@gnu.org>
Wed, 23 Oct 2024 07:00:45 +0000 (10:00 +0300)
committerEshel Yaron <me@eshelyaron.com>
Fri, 25 Oct 2024 05:06:49 +0000 (07:06 +0200)
* lisp/emacs-lisp/comp.el (native-compile-directory): Doc fix.

* doc/lispref/compile.texi (Native-Compilation Functions):
Document 'native-compile-directory'.

* etc/NEWS: Improve wording.

(cherry picked from commit c037b253975da883594f10f48e0be53d81a32756)

doc/lispref/compile.texi
etc/NEWS
lisp/emacs-lisp/comp.el

index 65442dd8d191ebcc2a4699e378ddce7904468fbe..69a9aa5f31cf6875fea78812612f829594b0e0eb 100644 (file)
@@ -927,6 +927,14 @@ compilation subprocesses in parallel, under the control of
 Variables}).
 @end defun
 
+@defun native-compile-directory directory
+This function compiles into native code all the @file{*.el} files in the
+specified @var{directory} and, recursively, in all of its
+subdirectories, if a corresponding @file{.eln} file could not be found
+in any of the directories mentioned in the
+@code{native-comp-eln-load-path} list (@pxref{Library Search}).
+@end defun
+
 @deffn Command emacs-lisp-native-compile
 This command compiles the file visited by the current buffer into
 native code, if the file was changed since the last time it was
index 88c11eac0e2940c2679da992e5157ecb9fa1d2f3..9e95f8015f6e8b23a169b4b18983d2fd7d3d4c0f 100644 (file)
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -579,8 +579,8 @@ sup-mouse.el, terminal.el, vi.el, vip.el, ws-mode.el, and yow.el.
 
 ---
 ** New function 'native-compile-directory'.
-This function native compiles all Lisp files in a directory and in its
-sub-directories (if they are not already native compiled).
+This function natively-compiles all Lisp files in a directory and in its
+sub-directories, recursively, which were not already natively-compiled.
 
 +++
 ** The 'defcustom' :local keyword can now be 'permanent-only'.
index 8866f47aa66c7e4adbb42f97680c6f4774346a89..96341b0a39f7eac0bec581e517cdfefa91aa0b99 100644 (file)
@@ -3665,9 +3665,9 @@ the compilation was successful return the compiled function."
 ;;;###autoload
 (defun native-compile-directory (directory)
   "Native compile if necessary all the .el files present in DIRECTORY.
-Each .el file is native compiled if the corresponding .eln file is not
-found inside the current `native-comp-eln-load-path'. The search within
-DIRECTORY is perfomed recursively."
+Each .el file is native-compiled if the corresponding .eln file is not
+found in any directory mentioned in `native-comp-eln-load-path'.
+The search within DIRECTORY is perfomed recursively."
   (mapc (lambda (file)
          (unless (comp-lookup-eln file)
            (native-compile file)))