changeset 48723:a6906c113d14

(Fdefalias): Record in load-history redefining an autoload.
author Richard M. Stallman <rms@gnu.org>
date Sat, 07 Dec 2002 21:38:39 +0000
parents 6cea9f00471e
children ccd782f27e54
files src/data.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/data.c	Sat Dec 07 21:37:34 2002 +0000
+++ b/src/data.c	Sat Dec 07 21:38:39 2002 +0000
@@ -715,6 +715,9 @@
      (symbol, definition, docstring)
      register Lisp_Object symbol, definition, docstring;
 {
+  if (CONSP (XSYMBOL (symbol)->function)
+      && EQ (XCAR (XSYMBOL (symbol)->function), Qautoload))
+    LOADHIST_ATTACH (Fcons (Qt, symbol));
   definition = Ffset (symbol, definition);
   LOADHIST_ATTACH (symbol);
   if (!NILP (docstring))