summaryrefslogtreecommitdiff
path: root/doc/lispref/compile.texi
diff options
context:
space:
mode:
authorStefan Kangas <stefankangas@gmail.com>2022-10-16 08:27:16 +0200
committerStefan Kangas <stefankangas@gmail.com>2022-10-16 08:27:16 +0200
commit07222447b6c9e75b713fe3b3954952fbb0e40c71 (patch)
tree2876590809eb930001208acff8652e25c2695ab4 /doc/lispref/compile.texi
parentc4c4a60f71254b7f59010c5539545fc2fc49b855 (diff)
parent067361f3a29ae23ff609a4308dd025fe783b9723 (diff)
downloademacs-07222447b6c9e75b713fe3b3954952fbb0e40c71.tar.gz
emacs-07222447b6c9e75b713fe3b3954952fbb0e40c71.tar.bz2
emacs-07222447b6c9e75b713fe3b3954952fbb0e40c71.zip
Merge from origin/emacs-28
067361f3a2 ; Improve documentation of 'C-M-i' fdb6f7cf26 ; Fix documentation of 'comp-enable-subr-trampolines' be30369e01 ; Avoid incorrect indentation in an @example. 4bd3dd505e Document how to control where the *.eln files are written b7d7c2d9e9 Add cross-reference to alternative syntaxes for Unicode # Conflicts: # doc/emacs/custom.texi
Diffstat (limited to 'doc/lispref/compile.texi')
-rw-r--r--doc/lispref/compile.texi18
1 files changed, 18 insertions, 0 deletions
diff --git a/doc/lispref/compile.texi b/doc/lispref/compile.texi
index 70e0f98f443..6f8431c55ce 100644
--- a/doc/lispref/compile.texi
+++ b/doc/lispref/compile.texi
@@ -843,6 +843,14 @@ native compilation of that file. In addition, a similar variable
file. If both @code{no-byte-compile} and @code{no-native-compile} are
specified, the former takes precedence.
+@cindex native compilation, prevent writing @file{*.eln} files
+ Sometimes there could be a need to prevent the native compilation
+from writing its results, the @file{*.eln} files, into a subdirectory
+of @code{user-emacs-directory} (@pxref{Init File}). You can do that
+by either changing the value of @code{native-comp-eln-load-path}
+(@pxref{Native-Compilation Variables}) or by temporarily pointing the
+@env{HOME} environment variable to a non-existing directory.
+
@menu
* Native-Compilation Functions:: Functions to natively-compile Lisp.
* Native-Compilation Variables:: Variables controlling native compilation.
@@ -1075,3 +1083,13 @@ subprocesses that are still running, thus preventing the corresponding
@file{.eln} files from being written. If the value is @code{nil}, the
default, Emacs will kill these subprocesses without querying.
@end defopt
+
+The variable @code{native-comp-eln-load-path} holds the list of
+directories where Emacs looks for the @file{*.eln} files
+(@pxref{Library Search}); in that role it is the equivalent of
+@code{load-path} used to look for @file{*.el} and @file{*.elc} files.
+The directories in this list are also used for writing the
+@file{*.eln} files produced by asynchronous native-compilation;
+specifically, Emacs will write these files into the first writable
+directory in the list. Thus, you can control where native-compilation
+stores the results by changing the value of this variable.