aboutsummaryrefslogtreecommitdiffstats
path: root/src/macros.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/macros.c')
-rw-r--r--src/macros.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/macros.c b/src/macros.c
index f6cd3a3ccad..4ecf49834a1 100644
--- a/src/macros.c
+++ b/src/macros.c
@@ -35,7 +35,7 @@ static Lisp_Object Qkbd_macro_termination_hook;
35 This is not bound at each level, 35 This is not bound at each level,
36 so after an error, it describes the innermost interrupted macro. */ 36 so after an error, it describes the innermost interrupted macro. */
37 37
38int executing_kbd_macro_iterations; 38EMACS_INT executing_kbd_macro_iterations;
39 39
40/* This is the macro that was executing. 40/* This is the macro that was executing.
41 This is not bound at each level, 41 This is not bound at each level,
@@ -175,11 +175,11 @@ each iteration of the macro. Iteration stops if LOOPFUNC returns nil. */)
175 175
176 if (XFASTINT (repeat) == 0) 176 if (XFASTINT (repeat) == 0)
177 Fexecute_kbd_macro (KVAR (current_kboard, Vlast_kbd_macro), repeat, loopfunc); 177 Fexecute_kbd_macro (KVAR (current_kboard, Vlast_kbd_macro), repeat, loopfunc);
178 else 178 else if (XINT (repeat) > 1)
179 { 179 {
180 XSETINT (repeat, XINT (repeat)-1); 180 XSETINT (repeat, XINT (repeat)-1);
181 if (XINT (repeat) > 0) 181 Fexecute_kbd_macro (KVAR (current_kboard, Vlast_kbd_macro),
182 Fexecute_kbd_macro (KVAR (current_kboard, Vlast_kbd_macro), repeat, loopfunc); 182 repeat, loopfunc);
183 } 183 }
184 return Qnil; 184 return Qnil;
185} 185}
@@ -302,9 +302,9 @@ each iteration of the macro. Iteration stops if LOOPFUNC returns nil. */)
302 Lisp_Object final; 302 Lisp_Object final;
303 Lisp_Object tem; 303 Lisp_Object tem;
304 int pdlcount = SPECPDL_INDEX (); 304 int pdlcount = SPECPDL_INDEX ();
305 int repeat = 1; 305 EMACS_INT repeat = 1;
306 struct gcpro gcpro1, gcpro2; 306 struct gcpro gcpro1, gcpro2;
307 int success_count = 0; 307 EMACS_INT success_count = 0;
308 308
309 executing_kbd_macro_iterations = 0; 309 executing_kbd_macro_iterations = 0;
310 310