Mercurial > emacs
diff doc/lispref/loading.texi @ 111608:2f23047ca654
Fix bug #7346: document load-file-name.
src/lread.c (Fload): Mention `load-in-progress' and `load-file-name'.
doc/lispref/loading.texi (How Programs Do Loading): Document `load-file-name'.
author | Eli Zaretskii <eliz@gnu.org> |
---|---|
date | Fri, 12 Nov 2010 18:35:35 +0200 |
parents | 71353caf35e3 |
children | 3655cc4062e4 376148b31b5e |
line wrap: on
line diff
--- a/doc/lispref/loading.texi Fri Nov 12 10:37:27 2010 +0200 +++ b/doc/lispref/loading.texi Fri Nov 12 18:35:35 2010 +0200 @@ -107,6 +107,10 @@ @code{load-path}, then all three suffixes in the second directory, and so on. @xref{Library Search}. +Whatever the name under which the file is eventually found, and the +directory where Emacs found it, Emacs sets the value of the variable +@code{load-file-name} to that file's name. + If you get a warning that @file{foo.elc} is older than @file{foo.el}, it means you should consider recompiling @file{foo.el}. @xref{Byte Compilation}. @@ -157,6 +161,12 @@ file, and it is @code{nil} otherwise. @end defvar +@defvar load-file-name +When Emacs is in the process of loading a file, this variable's value +is the name of that file, as Emacs found it during the search +described earlier in this section. +@end defvar + @defvar load-read-function @anchor{Definition of load-read-function} @c do not allow page break at anchor; work around Texinfo deficiency.