changeset 79207:f19edd342e7b

Comment change.
author Richard M. Stallman <rms@gnu.org>
date Wed, 24 Oct 2007 08:24:36 +0000
parents 2f9a621d6bd9
children 4845061b9683
files src/eval.c
diffstat 1 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/eval.c	Wed Oct 24 08:24:01 2007 +0000
+++ b/src/eval.c	Wed Oct 24 08:24:36 2007 +0000
@@ -2162,7 +2162,14 @@
   /* Preserve the match data.  */
   record_unwind_save_match_data ();
 
-  /* Value saved here is to be restored into Vautoload_queue.  */
+  /* If autoloading gets an error (which includes the error of failing
+     to define the function being called), we use Vautoload_queue
+     to undo function definitions and `provide' calls made by
+     the function.  We do this in the specific case of autoloading
+     because autoloading is not an explicit request "load this file",
+     but rather a request to "call this function".
+     
+     The value saved here is to be restored into Vautoload_queue.  */
   record_unwind_protect (un_autoload, Vautoload_queue);
   Vautoload_queue = Qt;
   Fload (Fcar (Fcdr (fundef)), Qnil, noninteractive ? Qt : Qnil, Qnil, Qt);