diff options
| author | Eli Zaretskii | 2021-09-22 16:01:30 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2021-09-22 16:01:30 +0300 |
| commit | 959d647568427219102cff17613cfbd4d516f9ef (patch) | |
| tree | b7fc9a694c284beb02f44ab7e95ee9925765cf8e /src | |
| parent | 7973227f67cd8ea4a1ed590ebc279b34ece86c12 (diff) | |
| download | emacs-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.c | 34 |
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 | ||
| 4042 | DEFUN ("comp-el-to-eln-rel-filename", Fcomp_el_to_eln_rel_filename, | 4042 | DEFUN ("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. |
| 4045 | FILENAME must exist, and if it's a symlink, the target must exist. | ||
| 4046 | If FILENAME is compressed, it must have the \".gz\" extension, | ||
| 4047 | and Emacs must have been compiled with zlib; the file will be | ||
| 4048 | uncompressed on the fly to hash its contents. | ||
| 4049 | Value includes the original base name, followed by 2 hash values, | ||
| 4050 | one 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 | ||
| 4127 | DEFUN ("comp-el-to-eln-filename", Fcomp_el_to_eln_filename, | 4133 | DEFUN ("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. |
| 4130 | for new compilations. | 4136 | The resulting .eln file name is intended to be used for natively |
| 4131 | If BASE-DIR is non-nil use it as a base directory, look for a suitable | 4137 | compiling FILENAME. FILENAME must exist and be readable, but other |
| 4132 | directory in `comp-eln-load-path' otherwise. */) | 4138 | than that, its leading directories are ignored when constructing |
| 4139 | the name of the .eln file. | ||
| 4140 | If BASE-DIR is non-nil, use it as the directory for the .eln file; | ||
| 4141 | non-absolute BASE-DIR is interpreted as relative to `invocation-directory'. | ||
| 4142 | If BASE-DIR is omitted or nil, look for the first writable directory | ||
| 4143 | in `native-comp-eln-load-path', and use as BASE-DIR its subdirectory | ||
| 4144 | whose name is given by `comp-native-version-dir'. | ||
| 4145 | If FILENAME specifies a preloaded file, the directory for the .eln | ||
| 4146 | file is the \"preloaded/\" subdirectory of the directory determined | ||
| 4147 | as described above. FILENAME is considered to be a preloaded file if | ||
| 4148 | the value of `comp-file-preloaded-p' is non-nil, or if FILENAME | ||
| 4149 | appears in the value of the environment variable LISP_PRELOADED; | ||
| 4150 | the 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 | ||
| 4712 | static Lisp_Object all_loaded_comp_units_h; | 4730 | static 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. */ |
| 4854 | void | 4872 | void |
| 4855 | fixup_eln_load_path (Lisp_Object eln_filename) | 4873 | fixup_eln_load_path (Lisp_Object eln_filename) |
| 4856 | { | 4874 | { |