aboutsummaryrefslogtreecommitdiffstats
path: root/doc/lispref/loading.texi
diff options
context:
space:
mode:
Diffstat (limited to 'doc/lispref/loading.texi')
-rw-r--r--doc/lispref/loading.texi10
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/lispref/loading.texi b/doc/lispref/loading.texi
index dee2a0252eb..05d836140c7 100644
--- a/doc/lispref/loading.texi
+++ b/doc/lispref/loading.texi
@@ -107,6 +107,10 @@ in @code{load-path}, where @code{nil} stands for the default directory.
107@code{load-path}, then all three suffixes in the second directory, and 107@code{load-path}, then all three suffixes in the second directory, and
108so on. @xref{Library Search}. 108so on. @xref{Library Search}.
109 109
110Whatever the name under which the file is eventually found, and the
111directory where Emacs found it, Emacs sets the value of the variable
112@code{load-file-name} to that file's name.
113
110If you get a warning that @file{foo.elc} is older than @file{foo.el}, it 114If you get a warning that @file{foo.elc} is older than @file{foo.el}, it
111means you should consider recompiling @file{foo.el}. @xref{Byte 115means you should consider recompiling @file{foo.el}. @xref{Byte
112Compilation}. 116Compilation}.
@@ -157,6 +161,12 @@ This variable is non-@code{nil} if Emacs is in the process of loading a
157file, and it is @code{nil} otherwise. 161file, and it is @code{nil} otherwise.
158@end defvar 162@end defvar
159 163
164@defvar load-file-name
165When Emacs is in the process of loading a file, this variable's value
166is the name of that file, as Emacs found it during the search
167described earlier in this section.
168@end defvar
169
160@defvar load-read-function 170@defvar load-read-function
161@anchor{Definition of load-read-function} 171@anchor{Definition of load-read-function}
162@c do not allow page break at anchor; work around Texinfo deficiency. 172@c do not allow page break at anchor; work around Texinfo deficiency.