Commit c664f463 authored by Chong Yidong's avatar Chong Yidong

* lread.c (Fload): Doc fix.

Fixes: debbugs:12592
parent 4c5d08a8
2012-10-20 Chong Yidong <cyd@gnu.org>
* lread.c (Fload): Doc fix (Bug#12592).
2012-10-19 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change) 2012-10-19 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
* font.c (Ffont_at): Fix previous change. * font.c (Ffont_at): Fix previous change.
......
...@@ -996,18 +996,17 @@ If optional fifth arg MUST-SUFFIX is non-nil, insist on ...@@ -996,18 +996,17 @@ If optional fifth arg MUST-SUFFIX is non-nil, insist on
the suffix `.elc' or `.el'; don't accept just FILE unless the suffix `.elc' or `.el'; don't accept just FILE unless
it ends in one of those suffixes or includes a directory name. it ends in one of those suffixes or includes a directory name.
If this function fails to find a file, it may look for different If NOSUFFIX is nil, then if a file could not be found, try looking for
representations of that file before trying another file. a different representation of the file by adding non-empty suffixes to
It does so by adding the non-empty suffixes in `load-file-rep-suffixes' its name, before trying another file. Emacs uses this feature to find
to the file name. Emacs uses this feature mainly to find compressed compressed versions of files when Auto Compression mode is enabled.
versions of files when Auto Compression mode is enabled. If NOSUFFIX is non-nil, disable this feature.
The exact suffixes that this function tries out, in the exact order, The suffixes that this function tries out, when NOSUFFIX is nil, are
are given by the value of the variable `load-file-rep-suffixes' if given by the return value of `get-load-suffixes' and the values listed
NOSUFFIX is non-nil and by the return value of the function in `load-file-rep-suffixes'. If MUST-SUFFIX is non-nil, only the
`get-load-suffixes' if MUST-SUFFIX is non-nil. If both NOSUFFIX and return value of `get-load-suffixes' is used, i.e. the file name is
MUST-SUFFIX are nil, this function first tries out the latter suffixes required to have a non-empty suffix.
and then the former.
Loading a file records its definitions, and its `provide' and Loading a file records its definitions, and its `provide' and
`require' calls, in an element of `load-history' whose `require' calls, in an element of `load-history' whose
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment