aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2025-05-24 10:23:11 +0300
committerEli Zaretskii2025-05-24 10:23:11 +0300
commitda174e4a15229ae498713444e70c382d7e0e90cd (patch)
tree377ac3514603a74af88d81e2c118300d5d76d73c /src
parente5218df144203ff1b5da3d46b7579b6455008ee7 (diff)
downloademacs-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.c13
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
6118When load is called, this function is called with three arguments: the 6118If this variable is a function, it is called when `load' is about to
6119current value of `load-path' (a list of directories), the FILE argument 6119search for a file along `load-path'. This function is called with three
6120to load, and the current load-suffixes. 6120arguments: the current value of `load-path' (a list of directories),
6121the FILE argument to `load', and the current list of load-suffixes.
6121 6122
6122It should return a list of directories, which `load' will use instead of 6123It should return a (hopefully shorter) list of directories, which `load'
6123`load-path'. */); 6124will 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. */