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))
first = Fcar (queue);
second = Fcdr (first);
first = Fcar (first);
- if (!EQ (second, Qnil))
+
+ /* Note: This test is subtle. The cdr of an autoload-queue entry
+ may be an atom if the autoload entry was generated by a defalias
+ or fset. */
+ if (CONSP (second))
Fput(first, Qautoload, (Fcdr (second)));
+
queue = Fcdr (queue);
}
-#endif /* UNLOAD */
/* Once loading finishes, don't undo it. */
Vautoload_queue = Qt;