diff options
| author | Joakim Verona | 2011-09-05 10:37:16 +0200 |
|---|---|---|
| committer | Joakim Verona | 2011-09-05 10:37:16 +0200 |
| commit | 687faaf59cdf4029b5e8da16965b257592059e37 (patch) | |
| tree | c19fc758dc421ec1e6619de88d7cd70258927b47 /src/macros.c | |
| parent | d47f8c5baeaa804548a73675077c8e37cdfe5142 (diff) | |
| parent | f62bd846552a090f3ba5e136d6d9cdb4c07ed7be (diff) | |
| download | emacs-687faaf59cdf4029b5e8da16965b257592059e37.tar.gz emacs-687faaf59cdf4029b5e8da16965b257592059e37.zip | |
upstream
Diffstat (limited to 'src/macros.c')
| -rw-r--r-- | src/macros.c | 12 |
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 | ||
| 38 | int executing_kbd_macro_iterations; | 38 | EMACS_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 | ||