/* Kbd macro currently being executed (a string or vector). */
-Lisp_Object Vexecuting_macro;
+Lisp_Object Vexecuting_kbd_macro;
/* Index of next character to fetch from that macro. */
return Qnil;
}
-/* Restore Vexecuting_macro and executing_macro_index - called when
+/* Restore Vexecuting_kbd_macro and executing_macro_index - called when
the unwind-protect in Fexecute_kbd_macro gets invoked. */
static Lisp_Object
Lisp_Object info;
{
Lisp_Object tem;
- Vexecuting_macro = XCAR (info);
+ Vexecuting_kbd_macro = XCAR (info);
tem = XCDR (info);
executing_macro_index = XINT (XCAR (tem));
real_this_command = XCDR (tem);
if (!STRINGP (final) && !VECTORP (final))
error ("Keyboard macros must be strings or vectors");
- tem = Fcons (Vexecuting_macro,
+ tem = Fcons (Vexecuting_kbd_macro,
Fcons (make_number (executing_macro_index),
real_this_command));
record_unwind_protect (pop_kbd_macro, tem);
GCPRO2 (final, loopfunc);
do
{
- Vexecuting_macro = final;
+ Vexecuting_kbd_macro = final;
executing_macro = final;
executing_macro_index = 0;
QUIT;
}
while (--repeat
- && (STRINGP (Vexecuting_macro) || VECTORP (Vexecuting_macro)));
+ && (STRINGP (Vexecuting_kbd_macro) || VECTORP (Vexecuting_kbd_macro)));
executing_macro = Qnil;
- real_this_command = Vexecuting_macro;
+ real_this_command = Vexecuting_kbd_macro;
UNGCPRO;
return unbind_to (pdlcount, Qnil);
void
init_macros ()
{
- Vexecuting_macro = Qnil;
+ Vexecuting_kbd_macro = Qnil;
executing_macro = Qnil;
}
The value is the symbol `append' while appending to the definition of
an existing macro. */);
- DEFVAR_LISP ("executing-macro", &Vexecuting_macro,
- doc: /* Currently executing keyboard macro (string or vector); nil if none executing. */);
+ DEFVAR_LISP ("executing-kbd-macro", &Vexecuting_kbd_macro,
+ doc: /* Currently executing keyboard macro (string or vector).
+This is nil when not executing a keyboard macro. */);
DEFVAR_INT ("executing-macro-index", &executing_macro_index,
doc: /* Index in currently executing keyboard macro; undefined if none executing. */);
- DEFVAR_LISP_NOPRO ("executing-kbd-macro", &Vexecuting_macro,
- doc: /* Currently executing keyboard macro (string or vector); nil if none executing. */);
-
DEFVAR_KBOARD ("last-kbd-macro", Vlast_kbd_macro,
doc: /* Last kbd macro defined, as a string or vector; nil if none defined. */);
}