]> git.eshelyaron.com Git - emacs.git/commitdiff
(command_loop_1): Don't call start_hourglass
authorRichard M. Stallman <rms@gnu.org>
Sat, 13 Apr 2002 17:48:10 +0000 (17:48 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sat, 13 Apr 2002 17:48:10 +0000 (17:48 +0000)
or cancel_hourglass when executing a macro.

src/keyboard.c

index 2d46a1d99a934851a062ebf02c1332ae035a9b6b..cd3aa3793fbfe16a14b4e0d042949040d851db2c 100644 (file)
@@ -1651,7 +1651,8 @@ command_loop_1 ()
          /* Here for a command that isn't executed directly */
 
 #ifdef HAVE_X_WINDOWS
-         if (display_hourglass_p)
+         if (display_hourglass_p
+             && NILP (Vexecuting_macro))
            start_hourglass ();
 #endif
 
@@ -1663,8 +1664,11 @@ command_loop_1 ()
 #ifdef HAVE_X_WINDOWS
          /* Do not check display_hourglass_p here, because
             Fcommand_execute could change it, but we should cancel
-            hourglass cursor anyway.  */
-         cancel_hourglass ();
+            hourglass cursor anyway.
+            But don't cancel the hourglass within a macro
+            just because a command in the macro finishes.  */
+         if (NILP (Vexecuting_macro))
+           cancel_hourglass ();
 #endif
        }
     directly_done: ;