Mercurial > emacs
diff src/lread.c @ 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 | de58fd0baac5 |
children | 3655cc4062e4 3429632cfcfb |
line wrap: on
line diff
--- a/src/lread.c Fri Nov 12 10:37:27 2010 +0200 +++ b/src/lread.c Fri Nov 12 18:35:35 2010 +0200 @@ -1007,6 +1007,10 @@ `require' calls, in an element of `load-history' whose car is the file name loaded. See `load-history'. +While the file is in the process of being loaded, the variable +`load-in-progress' is non-nil and the variable `load-file-name' +is bound to the file's name. + Return t if the file exists and loads successfully. */) (file, noerror, nomessage, nosuffix, must_suffix) Lisp_Object file, noerror, nomessage, nosuffix, must_suffix;