emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/trunk r110602: * lread.c (Fload): Doc fix.


From: Chong Yidong
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r110602: * lread.c (Fload): Doc fix.
Date: Sat, 20 Oct 2012 20:50:49 +0800
User-agent: Bazaar (2.5.0)

------------------------------------------------------------
revno: 110602
fixes bug: http://debbugs.gnu.org/12592
committer: Chong Yidong <address@hidden>
branch nick: trunk
timestamp: Sat 2012-10-20 20:50:49 +0800
message:
  * lread.c (Fload): Doc fix.
modified:
  src/ChangeLog
  src/lread.c
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2012-10-19 19:25:18 +0000
+++ b/src/ChangeLog     2012-10-20 12:50:49 +0000
@@ -1,3 +1,7 @@
+2012-10-20  Chong Yidong  <address@hidden>
+
+       * lread.c (Fload): Doc fix (Bug#12592).
+
 2012-10-19  Kazuhiro Ito  <address@hidden>  (tiny change)
 
        * font.c (Ffont_at): Fix previous change.

=== modified file 'src/lread.c'
--- a/src/lread.c       2012-10-19 19:25:18 +0000
+++ b/src/lread.c       2012-10-20 12:50:49 +0000
@@ -996,18 +996,17 @@
 the suffix `.elc' or `.el'; don't accept just FILE unless
 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
-representations of that file before trying another file.
-It does so by adding the non-empty suffixes in `load-file-rep-suffixes'
-to the file name.  Emacs uses this feature mainly to find compressed
-versions of files when Auto Compression mode is enabled.
+If NOSUFFIX is nil, then if a file could not be found, try looking for
+a different representation of the file by adding non-empty suffixes to
+its name, before trying another file.  Emacs uses this feature to find
+compressed 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,
-are given by the value of the variable `load-file-rep-suffixes' if
-NOSUFFIX is non-nil and by the return value of the function
-`get-load-suffixes' if MUST-SUFFIX is non-nil.  If both NOSUFFIX and
-MUST-SUFFIX are nil, this function first tries out the latter suffixes
-and then the former.
+The suffixes that this function tries out, when NOSUFFIX is nil, are
+given by the return value of `get-load-suffixes' and the values listed
+in `load-file-rep-suffixes'.  If MUST-SUFFIX is non-nil, only the
+return value of `get-load-suffixes' is used, i.e. the file name is
+required to have a non-empty suffix.
 
 Loading a file records its definitions, and its `provide' and
 `require' calls, in an element of `load-history' whose


reply via email to

[Prev in Thread] Current Thread [Next in Thread]