]> code.delx.au - gnu-emacs/commitdiff
(un_autoload): Don't try to save old autoload forms when we load something
authorEric S. Raymond <esr@snark.thyrsus.com>
Tue, 27 Apr 1993 21:59:59 +0000 (21:59 +0000)
committerEric S. Raymond <esr@snark.thyrsus.com>
Tue, 27 Apr 1993 21:59:59 +0000 (21:59 +0000)
in.  Something about the code now conditioned out by UNLOAD was screwing
up ordinary autoloads, notably of picture.el.  When I figure out what, I'll
fix and re-enable this code.

src/eval.c

index d12cf8d9fae4428ffe25c06442e96d88eea05986..445ff0881645b5ad4dd0cc1e29587ad44b99bf9a 100644 (file)
@@ -1391,6 +1391,7 @@ do_autoload (fundef, funname)
   Vautoload_queue = Qt;
   Fload (Fcar (Fcdr (fundef)), Qnil, noninteractive ? Qt : Qnil, Qnil);
 
+#ifdef UNLOAD
   /* Save the old autoloads, in case we ever do an unload. */
   queue = Vautoload_queue;
   while (CONSP (queue))
@@ -1402,6 +1403,7 @@ do_autoload (fundef, funname)
          Fput(first, Qautoload, (Fcdr (second)));
       queue = Fcdr (queue);
     }
+#endif /* UNLOAD */
 
   /* Once loading finishes, don't undo it.  */
   Vautoload_queue = Qt;