]> code.delx.au - gnu-emacs/commitdiff
(Fdefalias): Record in load-history redefining an autoload.
authorRichard M. Stallman <rms@gnu.org>
Sat, 7 Dec 2002 21:38:39 +0000 (21:38 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sat, 7 Dec 2002 21:38:39 +0000 (21:38 +0000)
src/data.c

index c8867ef3cd76d6487d9f5063686136e80e273485..bde8ec3c83175173ba1216f9aa506f5deed6cdb7 100644 (file)
@@ -715,6 +715,9 @@ determined by DEFINITION.  */)
      (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))