aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2021-09-22 16:01:30 +0300
committerEli Zaretskii2021-09-22 16:01:30 +0300
commit959d647568427219102cff17613cfbd4d516f9ef (patch)
treeb7fc9a694c284beb02f44ab7e95ee9925765cf8e /src
parent7973227f67cd8ea4a1ed590ebc279b34ece86c12 (diff)
downloademacs-959d647568427219102cff17613cfbd4d516f9ef.tar.gz
emacs-959d647568427219102cff17613cfbd4d516f9ef.zip
Doc string fixes in comp.e
* src/comp.c (Fcomp_el_to_eln_filename) (Fcomp_el_to_eln_rel_filename): Doc fix.
Diffstat (limited to 'src')
-rw-r--r--src/comp.c34
1 files changed, 26 insertions, 8 deletions
diff --git a/src/comp.c b/src/comp.c
index fbf6a3c670e..e9635f219fd 100644
--- a/src/comp.c
+++ b/src/comp.c
@@ -4041,7 +4041,13 @@ make_directory_wrapper_1 (Lisp_Object ignore)
4041 4041
4042DEFUN ("comp-el-to-eln-rel-filename", Fcomp_el_to_eln_rel_filename, 4042DEFUN ("comp-el-to-eln-rel-filename", Fcomp_el_to_eln_rel_filename,
4043 Scomp_el_to_eln_rel_filename, 1, 1, 0, 4043 Scomp_el_to_eln_rel_filename, 1, 1, 0,
4044 doc: /* Return the corresponding .eln relative filename. */) 4044 doc: /* Return the relative name of the .eln file for FILENAME.
4045FILENAME must exist, and if it's a symlink, the target must exist.
4046If FILENAME is compressed, it must have the \".gz\" extension,
4047and Emacs must have been compiled with zlib; the file will be
4048uncompressed on the fly to hash its contents.
4049Value includes the original base name, followed by 2 hash values,
4050one for the file name and another for its contents, followed by .eln. */)
4045 (Lisp_Object filename) 4051 (Lisp_Object filename)
4046{ 4052{
4047 CHECK_STRING (filename); 4053 CHECK_STRING (filename);
@@ -4126,10 +4132,22 @@ DEFUN ("comp-el-to-eln-rel-filename", Fcomp_el_to_eln_rel_filename,
4126 4132
4127DEFUN ("comp-el-to-eln-filename", Fcomp_el_to_eln_filename, 4133DEFUN ("comp-el-to-eln-filename", Fcomp_el_to_eln_filename,
4128 Scomp_el_to_eln_filename, 1, 2, 0, 4134 Scomp_el_to_eln_filename, 1, 2, 0,
4129 doc: /* Return the .eln filename for source FILENAME to used 4135 doc: /* Return the absolute .eln file name for source FILENAME.
4130for new compilations. 4136The resulting .eln file name is intended to be used for natively
4131If BASE-DIR is non-nil use it as a base directory, look for a suitable 4137compiling FILENAME. FILENAME must exist and be readable, but other
4132directory in `comp-eln-load-path' otherwise. */) 4138than that, its leading directories are ignored when constructing
4139the name of the .eln file.
4140If BASE-DIR is non-nil, use it as the directory for the .eln file;
4141non-absolute BASE-DIR is interpreted as relative to `invocation-directory'.
4142If BASE-DIR is omitted or nil, look for the first writable directory
4143in `native-comp-eln-load-path', and use as BASE-DIR its subdirectory
4144whose name is given by `comp-native-version-dir'.
4145If FILENAME specifies a preloaded file, the directory for the .eln
4146file is the \"preloaded/\" subdirectory of the directory determined
4147as described above. FILENAME is considered to be a preloaded file if
4148the value of `comp-file-preloaded-p' is non-nil, or if FILENAME
4149appears in the value of the environment variable LISP_PRELOADED;
4150the latter is supposed to be used by the Emacs build procedure. */)
4133 (Lisp_Object filename, Lisp_Object base_dir) 4151 (Lisp_Object filename, Lisp_Object base_dir)
4134{ 4152{
4135 Lisp_Object source_filename = filename; 4153 Lisp_Object source_filename = filename;
@@ -4707,7 +4725,7 @@ helper_PSEUDOVECTOR_TYPEP_XUNTAG (Lisp_Object a, enum pvec_type code)
4707} 4725}
4708 4726
4709 4727
4710/* `comp-eln-load-path' clean-up support code. */ 4728/* `native-comp-eln-load-path' clean-up support code. */
4711 4729
4712static Lisp_Object all_loaded_comp_units_h; 4730static Lisp_Object all_loaded_comp_units_h;
4713 4731
@@ -4722,7 +4740,7 @@ return_nil (Lisp_Object arg)
4722/* Windows does not let us delete a .eln file that is currently loaded 4740/* Windows does not let us delete a .eln file that is currently loaded
4723 by a process. The strategy is to rename .eln files into .old.eln 4741 by a process. The strategy is to rename .eln files into .old.eln
4724 instead of removing them when this is not possible and clean-up 4742 instead of removing them when this is not possible and clean-up
4725 `comp-eln-load-path' when exiting. 4743 `native-comp-eln-load-path' when exiting.
4726 4744
4727 Any error is ignored because it may be due to the file being loaded 4745 Any error is ignored because it may be due to the file being loaded
4728 in another Emacs instance. */ 4746 in another Emacs instance. */
@@ -4850,7 +4868,7 @@ maybe_defer_native_compilation (Lisp_Object function_name,
4850/**************************************/ 4868/**************************************/
4851 4869
4852/* Fixup the system eln-cache directory, which is the last entry in 4870/* Fixup the system eln-cache directory, which is the last entry in
4853 `comp-eln-load-path'. Argument is a .eln file in that directory. */ 4871 `native-comp-eln-load-path'. Argument is a .eln file in that directory. */
4854void 4872void
4855fixup_eln_load_path (Lisp_Object eln_filename) 4873fixup_eln_load_path (Lisp_Object eln_filename)
4856{ 4874{