diff options
author | Glenn Morris <rgm@gnu.org> | 2013-12-22 18:54:28 -0800 |
---|---|---|
committer | Glenn Morris <rgm@gnu.org> | 2013-12-22 18:54:28 -0800 |
commit | aec3bf9f49c8c0d0356a0e57f362bd0e23206e7d (patch) | |
tree | 1968eb7f765b2b67cfe72ab250fabbcb3ebc9413 /doc/lispref/loading.texi | |
parent | bb962da29aed412d70ac4b0b02bb343eb133dc88 (diff) | |
download | emacs-aec3bf9f49c8c0d0356a0e57f362bd0e23206e7d.tar.gz |
Some documenting of load-prefer-newer
* doc/lispref/loading.texi (How Programs Do Loading, Load Suffixes):
Mention `load-prefer-newer'.
* src/lread.c (Fload): Mention load-prefer-newer in doc.
Diffstat (limited to 'doc/lispref/loading.texi')
-rw-r--r-- | doc/lispref/loading.texi | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/lispref/loading.texi b/doc/lispref/loading.texi index 48866a10687..d1bcfd26a0b 100644 --- a/doc/lispref/loading.texi +++ b/doc/lispref/loading.texi @@ -93,6 +93,10 @@ If the optional argument @var{must-suffix} is non-@code{nil}, then @samp{.el} or @samp{.elc} (possibly extended with a compression suffix), unless it contains an explicit directory name. +If the option @code{load-prefer-newer} is non-@code{nil}, then when +searching suffixes, @code{load} selects whichever version of a file +(@samp{.elc}, @samp{.el}, etc.) has been modified most recently. + If @var{filename} is a relative file name, such as @file{foo} or @file{baz/foo.bar}, @code{load} searches for the file using the variable @code{load-path}. It appends @var{filename} to each of the directories @@ -246,6 +250,12 @@ value of @code{(get-load-suffixes)} and then those in it skips the former group, and if @var{must-suffix} is non-@code{nil}, it skips the latter group. +@defopt load-prefer-newer +If this option is non-@code{nil}, then rather than stopping at the +first suffix that exists, @code{load} tests them all, and uses +whichever file is the newest. +@end defopt + @node Library Search @section Library Search @cindex library search |