X-Git-Url: https://git.hcoop.net/bpt/emacs.git/blobdiff_plain/9ac6d28ab8c29547d9f9365dc8f7cea13c32ef7a..2bfa3d3e1fb347ba76bddf77f3e288049635821d:/src/macros.c diff --git a/src/macros.c b/src/macros.c index acba125edc..d82ec8bb82 100644 --- a/src/macros.c +++ b/src/macros.c @@ -300,7 +300,7 @@ each iteration of the macro. Iteration stops if LOOPFUNC returns nil. */) { Lisp_Object final; Lisp_Object tem; - ptrdiff_t pdlcount = SPECPDL_INDEX (); + dynwind_begin (); EMACS_INT repeat = 1; struct gcpro gcpro1, gcpro2; EMACS_INT success_count = 0; @@ -353,7 +353,8 @@ each iteration of the macro. Iteration stops if LOOPFUNC returns nil. */) Vreal_this_command = Vexecuting_kbd_macro; UNGCPRO; - return unbind_to (pdlcount, Qnil); + dynwind_end (); + return Qnil; } void @@ -366,6 +367,8 @@ init_macros (void) void syms_of_macros (void) { +#include "macros.x" + DEFSYM (Qexecute_kbd_macro, "execute-kbd-macro"); DEFVAR_LISP ("kbd-macro-termination-hook", Vkbd_macro_termination_hook, @@ -374,13 +377,6 @@ This is run whether the macro ends normally or prematurely due to an error. */) Vkbd_macro_termination_hook = Qnil; DEFSYM (Qkbd_macro_termination_hook, "kbd-macro-termination-hook"); - defsubr (&Sstart_kbd_macro); - defsubr (&Send_kbd_macro); - defsubr (&Scall_last_kbd_macro); - defsubr (&Sexecute_kbd_macro); - defsubr (&Scancel_kbd_macro_events); - defsubr (&Sstore_kbd_macro_event); - DEFVAR_KBOARD ("defining-kbd-macro", defining_kbd_macro, doc: /* Non-nil while a keyboard macro is being defined. Don't set this! The value is the symbol `append' while appending to the definition of