Commit 7973e637 authored by Stefan Monnier's avatar Stefan Monnier
Browse files

* eval.c (Fautoload): Add entry in load-history (if after dump).

* lread.c (load-history): Update docstring.
parent c7dcadb5
No preview for this file type
......@@ -1646,6 +1646,11 @@ this does nothing and returns nil.")
&& EQ (XCAR (XSYMBOL (function)->function), Qautoload)))
return Qnil;
if (NILP (Vpurify_flag))
/* Only add entries after dumping, because the ones before are
not useful and else we get loads of them from the loaddefs.el. */
LOADHIST_ATTACH (Fcons (Qautoload, function));
args[0] = file;
args[1] = docstring;
......@@ -3433,7 +3433,8 @@ Each alist element is a list that starts with a file name,\n\
except for one element (optional) that starts with nil and describes\n\
definitions evaluated from buffers not visiting files.\n\
The remaining elements of each list are symbols defined as functions\n\
or variables, and cons cells `(provide . FEATURE)' and `(require . FEATURE)'.");
or variables, and cons cells `(provide . FEATURE)', `(require . FEATURE)',
and `(autoload . SYMBOL)'.");
Vload_history = Qnil;
DEFVAR_LISP ("load-file-name", &Vload_file_name,
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment