aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/lispref/ChangeLog16
-rw-r--r--doc/lispref/loading.texi10
2 files changed, 21 insertions, 5 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog
index 96fdb94ca20..dbe148dbcf8 100644
--- a/doc/lispref/ChangeLog
+++ b/doc/lispref/ChangeLog
@@ -1,6 +1,12 @@
12013-12-23 Glenn Morris <rgm@gnu.org>
2
3 * loading.texi (How Programs Do Loading, Load Suffixes):
4 Mention `load-prefer-newer'.
5
12013-12-22 Xue Fuqiao <xfq.free@gmail.com> 62013-12-22 Xue Fuqiao <xfq.free@gmail.com>
2 7
3 * hash.texi (Other Hash): Document `hash-table-keys and `hash-table-values'. 8 * hash.texi (Other Hash): Document `hash-table-keys'
9 and `hash-table-values'.
4 10
52013-12-22 Eli Zaretskii <eliz@gnu.org> 112013-12-22 Eli Zaretskii <eliz@gnu.org>
6 12
@@ -15,11 +21,11 @@
15 21
16 * text.texi (Examining Properties): Document `get-pos-property'. 22 * text.texi (Examining Properties): Document `get-pos-property'.
17 23
18 * variables.texi (Directory Local Variables): Document 24 * variables.texi (Directory Local Variables):
19 `enable-dir-local-variables'. 25 Document `enable-dir-local-variables'.
20 26
21 * debugging.texi (Debugger Commands): Document 27 * debugging.texi (Debugger Commands):
22 `debugger-toggle-locals'. 28 Document `debugger-toggle-locals'.
23 29
242013-12-21 Chong Yidong <cyd@gnu.org> 302013-12-21 Chong Yidong <cyd@gnu.org>
25 31
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
93@samp{.el} or @samp{.elc} (possibly extended with a compression 93@samp{.el} or @samp{.elc} (possibly extended with a compression
94suffix), unless it contains an explicit directory name. 94suffix), unless it contains an explicit directory name.
95 95
96If the option @code{load-prefer-newer} is non-@code{nil}, then when
97searching suffixes, @code{load} selects whichever version of a file
98(@samp{.elc}, @samp{.el}, etc.) has been modified most recently.
99
96If @var{filename} is a relative file name, such as @file{foo} or 100If @var{filename} is a relative file name, such as @file{foo} or
97@file{baz/foo.bar}, @code{load} searches for the file using the variable 101@file{baz/foo.bar}, @code{load} searches for the file using the variable
98@code{load-path}. It appends @var{filename} to each of the directories 102@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
246it skips the former group, and if @var{must-suffix} is non-@code{nil}, 250it skips the former group, and if @var{must-suffix} is non-@code{nil},
247it skips the latter group. 251it skips the latter group.
248 252
253@defopt load-prefer-newer
254If this option is non-@code{nil}, then rather than stopping at the
255first suffix that exists, @code{load} tests them all, and uses
256whichever file is the newest.
257@end defopt
258
249@node Library Search 259@node Library Search
250@section Library Search 260@section Library Search
251@cindex library search 261@cindex library search