changeset 28297:f37b25e59751

* eval.c (Fautoload): Add entry in load-history (if after dump). * lread.c (load-history): Update docstring.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Fri, 24 Mar 2000 20:25:16 +0000
parents 0fa8223bb981
children 4ec88f0050a1
files src/eval.c src/lread.c
diffstat 2 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/eval.c	Fri Mar 24 18:45:23 2000 +0000
+++ b/src/eval.c	Fri Mar 24 20:25:16 2000 +0000
@@ -1646,6 +1646,11 @@
 	   && 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));
+
 #ifdef NO_ARG_ARRAY
   args[0] = file;
   args[1] = docstring;
--- a/src/lread.c	Fri Mar 24 18:45:23 2000 +0000
+++ b/src/lread.c	Fri Mar 24 20:25:16 2000 +0000
@@ -3433,7 +3433,8 @@
 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,