]> git.eshelyaron.com Git - emacs.git/commitdiff
(command_loop): Reset executing_macro after
authorRichard M. Stallman <rms@gnu.org>
Tue, 23 Jun 1998 03:09:24 +0000 (03:09 +0000)
committerRichard M. Stallman <rms@gnu.org>
Tue, 23 Jun 1998 03:09:24 +0000 (03:09 +0000)
command_loop_2 has returned, in case a throw to exit or top-level
was executed as part of a keyboard macro.

src/keyboard.c

index 9db0bca9683bf80200d69ecea5254389e9b564b3..0df3f09cd86d940376ed4d0cafbda542c6903aa0 100644 (file)
@@ -1021,13 +1021,16 @@ command_loop ()
 {
   if (command_loop_level > 0 || minibuf_level > 0)
     {
-      return internal_catch (Qexit, command_loop_2, Qnil);
+      Lisp_Object val = internal_catch (Qexit, command_loop_2, Qnil);
+      executing_macro = Qnil;
+      return val;
     }
   else
     while (1)
       {
        internal_catch (Qtop_level, top_level_1, Qnil);
        internal_catch (Qtop_level, command_loop_2, Qnil);
+       executing_macro = Qnil;
 
        /* End of file in -batch run causes exit here.  */
        if (noninteractive)