diff options
| author | Eli Zaretskii | 2025-05-24 10:23:11 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2025-05-24 10:23:11 +0300 |
| commit | da174e4a15229ae498713444e70c382d7e0e90cd (patch) | |
| tree | 377ac3514603a74af88d81e2c118300d5d76d73c /src | |
| parent | e5218df144203ff1b5da3d46b7579b6455008ee7 (diff) | |
| download | emacs-da174e4a15229ae498713444e70c382d7e0e90cd.tar.gz emacs-da174e4a15229ae498713444e70c382d7e0e90cd.zip | |
; Fix documentation of a recent commit
* etc/NEWS:
* doc/lispref/loading.texi (How Programs Do Loading): Document the
new variable and function.
* src/lread.c (load-path-filter-function):
* lisp/startup.el (load-path-filter-cache-directory-files)
(load-path-filter--cache): Doc fixes.
Diffstat (limited to 'src')
| -rw-r--r-- | src/lread.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/lread.c b/src/lread.c index ed481c19721..9b902532393 100644 --- a/src/lread.c +++ b/src/lread.c | |||
| @@ -6113,14 +6113,15 @@ through `require'. */); | |||
| 6113 | 6113 | ||
| 6114 | DEFVAR_LISP ("load-path-filter-function", | 6114 | DEFVAR_LISP ("load-path-filter-function", |
| 6115 | Vload_path_filter_function, | 6115 | Vload_path_filter_function, |
| 6116 | doc: /* Non-nil means to call this function to filter `load-path' for `load'. | 6116 | doc: /* If non-nil, a function to filter `load-path' for `load'. |
| 6117 | 6117 | ||
| 6118 | When load is called, this function is called with three arguments: the | 6118 | If this variable is a function, it is called when `load' is about to |
| 6119 | current value of `load-path' (a list of directories), the FILE argument | 6119 | search for a file along `load-path'. This function is called with three |
| 6120 | to load, and the current load-suffixes. | 6120 | arguments: the current value of `load-path' (a list of directories), |
| 6121 | the FILE argument to `load', and the current list of load-suffixes. | ||
| 6121 | 6122 | ||
| 6122 | It should return a list of directories, which `load' will use instead of | 6123 | It should return a (hopefully shorter) list of directories, which `load' |
| 6123 | `load-path'. */); | 6124 | will use instead of `load-path' to look for the file to load. */); |
| 6124 | Vload_path_filter_function = Qnil; | 6125 | Vload_path_filter_function = Qnil; |
| 6125 | 6126 | ||
| 6126 | /* Vsource_directory was initialized in init_lread. */ | 6127 | /* Vsource_directory was initialized in init_lread. */ |