Mercurial > emacs
diff lispref/loading.texi @ 76878:e4d2810db0e9
wording matters
| author | Karl Berry <karl@gnu.org> |
|---|---|
| date | Sun, 01 Apr 2007 18:11:15 +0000 |
| parents | 4f96f3f74c69 |
| children | 038943a0a75a |
line wrap: on
line diff
--- a/lispref/loading.texi Sun Apr 01 17:45:58 2007 +0000 +++ b/lispref/loading.texi Sun Apr 01 18:11:15 2007 +0000 @@ -64,22 +64,23 @@ To find the file, @code{load} first looks for a file named @file{@var{filename}.elc}, that is, for a file whose name is -@var{filename} with @samp{.elc} appended. If such a file exists, it is -loaded. If there is no file by that name, then @code{load} looks for a -file named @file{@var{filename}.el}. If that file exists, it is loaded. -Finally, if neither of those names is found, @code{load} looks for a -file named @var{filename} with nothing appended, and loads it if it -exists. (The @code{load} function is not clever about looking at -@var{filename}. In the perverse case of a file named @file{foo.el.el}, -evaluation of @code{(load "foo.el")} will indeed find it.) +@var{filename} with the extension @samp{.elc} appended. If such a +file exists, it is loaded. If there is no file by that name, then +@code{load} looks for a file named @file{@var{filename}.el}. If that +file exists, it is loaded. Finally, if neither of those names is +found, @code{load} looks for a file named @var{filename} with nothing +appended, and loads it if it exists. (The @code{load} function is not +clever about looking at @var{filename}. In the perverse case of a +file named @file{foo.el.el}, evaluation of @code{(load "foo.el")} will +indeed find it.) -If Auto Compression mode is enabled, as it is by default, then -if @code{load} can not find a file, it searches for a compressed -version of the file before trying other file names. It decompresses -and loads it if it exists. It looks for compressed versions by -appending the suffixes in @code{jka-compr-load-suffixes} to the file -name. The value of this variable must be a list of strings. Its -standard value is @code{(".gz")}. +If Auto Compression mode is enabled, as it is by default, then if +@code{load} can not find a file, it searches for a compressed version +of the file before trying other file names. It decompresses and loads +it if it exists. It looks for compressed versions by appending each +of the suffixes in @code{jka-compr-load-suffixes} to the file name. +The value of this variable must be a list of strings. Its standard +value is @code{(".gz")}. If the optional argument @var{nosuffix} is non-@code{nil}, then @code{load} does not try the suffixes @samp{.elc} and @samp{.el}. In @@ -958,7 +959,7 @@ The key @var{regexp-or-feature} is either a regular expression or a symbol, and the value is a list of forms. The forms are evaluated when -the key matches the the absolute true name of the file being +the key matches the absolute true name of the file being @code{load}ed or the symbol being @code{provide}d. @end defvar
