From d945992e32fd243aef865d770c1d6b97e547f200 Mon Sep 17 00:00:00 2001 From: Juanma Barranquero Date: Sun, 14 Oct 2007 17:20:53 +0000 Subject: [PATCH] (do_autoload): Don't save autoloads. --- src/eval.c | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/src/eval.c b/src/eval.c index 77abe5046db..b69eea44c75 100644 --- a/src/eval.c +++ b/src/eval.c @@ -2178,7 +2178,7 @@ do_autoload (fundef, funname) Lisp_Object fundef, funname; { int count = SPECPDL_INDEX (); - Lisp_Object fun, queue, first, second; + Lisp_Object fun; struct gcpro gcpro1, gcpro2, gcpro3; /* This is to make sure that loadup.el gives a clear picture @@ -2199,20 +2199,6 @@ do_autoload (fundef, funname) Vautoload_queue = Qt; Fload (Fcar (Fcdr (fundef)), Qnil, Qt, Qnil, Qt); - /* Save the old autoloads, in case we ever do an unload. */ - queue = Vautoload_queue; - while (CONSP (queue)) - { - first = XCAR (queue); - second = Fcdr (first); - first = Fcar (first); - - if (SYMBOLP (first) && CONSP (second) && EQ (XCAR (second), Qautoload)) - Fput (first, Qautoload, (XCDR (second))); - - queue = XCDR (queue); - } - /* Once loading finishes, don't undo it. */ Vautoload_queue = Qt; unbind_to (count, Qnil); -- 2.39.2