diff options
| author | Richard M. Stallman | 2005-05-01 18:48:26 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2005-05-01 18:48:26 +0000 |
| commit | 524ed533b0c2904ef56c9e034c4f69d131431b31 (patch) | |
| tree | c890e9b3d8e64d85962224f51514b35ea3a9a313 /src | |
| parent | ce0d28589860df9c70e354cbdf0baf0ae3b6cc2a (diff) | |
| download | emacs-524ed533b0c2904ef56c9e034c4f69d131431b31.tar.gz emacs-524ed533b0c2904ef56c9e034c4f69d131431b31.zip | |
(Vexecuting_kbd_macro): Renamed from Vexecuting_macro. All uses changed.
(syms_of_macros): Define only executing-kbd-macro, not executing-macro.
Diffstat (limited to 'src')
| -rw-r--r-- | src/macros.c | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/src/macros.c b/src/macros.c index 09ae87b0a59..04c8e1cd61f 100644 --- a/src/macros.c +++ b/src/macros.c | |||
| @@ -31,7 +31,7 @@ Lisp_Object Qexecute_kbd_macro, Qkbd_macro_termination_hook; | |||
| 31 | 31 | ||
| 32 | /* Kbd macro currently being executed (a string or vector). */ | 32 | /* Kbd macro currently being executed (a string or vector). */ |
| 33 | 33 | ||
| 34 | Lisp_Object Vexecuting_macro; | 34 | Lisp_Object Vexecuting_kbd_macro; |
| 35 | 35 | ||
| 36 | /* Index of next character to fetch from that macro. */ | 36 | /* Index of next character to fetch from that macro. */ |
| 37 | 37 | ||
| @@ -285,7 +285,7 @@ each iteration of the macro. Iteration stops if LOOPFUNC returns nil. */) | |||
| 285 | return Qnil; | 285 | return Qnil; |
| 286 | } | 286 | } |
| 287 | 287 | ||
| 288 | /* Restore Vexecuting_macro and executing_macro_index - called when | 288 | /* Restore Vexecuting_kbd_macro and executing_macro_index - called when |
| 289 | the unwind-protect in Fexecute_kbd_macro gets invoked. */ | 289 | the unwind-protect in Fexecute_kbd_macro gets invoked. */ |
| 290 | 290 | ||
| 291 | static Lisp_Object | 291 | static Lisp_Object |
| @@ -293,7 +293,7 @@ pop_kbd_macro (info) | |||
| 293 | Lisp_Object info; | 293 | Lisp_Object info; |
| 294 | { | 294 | { |
| 295 | Lisp_Object tem; | 295 | Lisp_Object tem; |
| 296 | Vexecuting_macro = XCAR (info); | 296 | Vexecuting_kbd_macro = XCAR (info); |
| 297 | tem = XCDR (info); | 297 | tem = XCDR (info); |
| 298 | executing_macro_index = XINT (XCAR (tem)); | 298 | executing_macro_index = XINT (XCAR (tem)); |
| 299 | real_this_command = XCDR (tem); | 299 | real_this_command = XCDR (tem); |
| @@ -330,7 +330,7 @@ each iteration of the macro. Iteration stops if LOOPFUNC returns nil. */) | |||
| 330 | if (!STRINGP (final) && !VECTORP (final)) | 330 | if (!STRINGP (final) && !VECTORP (final)) |
| 331 | error ("Keyboard macros must be strings or vectors"); | 331 | error ("Keyboard macros must be strings or vectors"); |
| 332 | 332 | ||
| 333 | tem = Fcons (Vexecuting_macro, | 333 | tem = Fcons (Vexecuting_kbd_macro, |
| 334 | Fcons (make_number (executing_macro_index), | 334 | Fcons (make_number (executing_macro_index), |
| 335 | real_this_command)); | 335 | real_this_command)); |
| 336 | record_unwind_protect (pop_kbd_macro, tem); | 336 | record_unwind_protect (pop_kbd_macro, tem); |
| @@ -338,7 +338,7 @@ each iteration of the macro. Iteration stops if LOOPFUNC returns nil. */) | |||
| 338 | GCPRO2 (final, loopfunc); | 338 | GCPRO2 (final, loopfunc); |
| 339 | do | 339 | do |
| 340 | { | 340 | { |
| 341 | Vexecuting_macro = final; | 341 | Vexecuting_kbd_macro = final; |
| 342 | executing_macro = final; | 342 | executing_macro = final; |
| 343 | executing_macro_index = 0; | 343 | executing_macro_index = 0; |
| 344 | 344 | ||
| @@ -359,11 +359,11 @@ each iteration of the macro. Iteration stops if LOOPFUNC returns nil. */) | |||
| 359 | QUIT; | 359 | QUIT; |
| 360 | } | 360 | } |
| 361 | while (--repeat | 361 | while (--repeat |
| 362 | && (STRINGP (Vexecuting_macro) || VECTORP (Vexecuting_macro))); | 362 | && (STRINGP (Vexecuting_kbd_macro) || VECTORP (Vexecuting_kbd_macro))); |
| 363 | 363 | ||
| 364 | executing_macro = Qnil; | 364 | executing_macro = Qnil; |
| 365 | 365 | ||
| 366 | real_this_command = Vexecuting_macro; | 366 | real_this_command = Vexecuting_kbd_macro; |
| 367 | 367 | ||
| 368 | UNGCPRO; | 368 | UNGCPRO; |
| 369 | return unbind_to (pdlcount, Qnil); | 369 | return unbind_to (pdlcount, Qnil); |
| @@ -372,7 +372,7 @@ each iteration of the macro. Iteration stops if LOOPFUNC returns nil. */) | |||
| 372 | void | 372 | void |
| 373 | init_macros () | 373 | init_macros () |
| 374 | { | 374 | { |
| 375 | Vexecuting_macro = Qnil; | 375 | Vexecuting_kbd_macro = Qnil; |
| 376 | executing_macro = Qnil; | 376 | executing_macro = Qnil; |
| 377 | } | 377 | } |
| 378 | 378 | ||
| @@ -396,15 +396,13 @@ syms_of_macros () | |||
| 396 | The value is the symbol `append' while appending to the definition of | 396 | The value is the symbol `append' while appending to the definition of |
| 397 | an existing macro. */); | 397 | an existing macro. */); |
| 398 | 398 | ||
| 399 | DEFVAR_LISP ("executing-macro", &Vexecuting_macro, | 399 | DEFVAR_LISP ("executing-kbd-macro", &Vexecuting_kbd_macro, |
| 400 | doc: /* Currently executing keyboard macro (string or vector); nil if none executing. */); | 400 | doc: /* Currently executing keyboard macro (string or vector). |
| 401 | This is nil when not executing a keyboard macro. */); | ||
| 401 | 402 | ||
| 402 | DEFVAR_INT ("executing-macro-index", &executing_macro_index, | 403 | DEFVAR_INT ("executing-macro-index", &executing_macro_index, |
| 403 | doc: /* Index in currently executing keyboard macro; undefined if none executing. */); | 404 | doc: /* Index in currently executing keyboard macro; undefined if none executing. */); |
| 404 | 405 | ||
| 405 | DEFVAR_LISP_NOPRO ("executing-kbd-macro", &Vexecuting_macro, | ||
| 406 | doc: /* Currently executing keyboard macro (string or vector); nil if none executing. */); | ||
| 407 | |||
| 408 | DEFVAR_KBOARD ("last-kbd-macro", Vlast_kbd_macro, | 406 | DEFVAR_KBOARD ("last-kbd-macro", Vlast_kbd_macro, |
| 409 | doc: /* Last kbd macro defined, as a string or vector; nil if none defined. */); | 407 | doc: /* Last kbd macro defined, as a string or vector; nil if none defined. */); |
| 410 | } | 408 | } |