Mercurial > emacs
changeset 12845:9ee2045cda62
(Fcancel_kbd_macro_events): New function.
(syms_of_macros): defsubr it.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sun, 13 Aug 1995 15:47:11 +0000 |
parents | a6bcb0568121 |
children | fc74ffbce5a9 |
files | src/macros.c |
diffstat | 1 files changed, 9 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/macros.c Sun Aug 13 15:46:10 1995 +0000 +++ b/src/macros.c Sun Aug 13 15:47:11 1995 +0000 @@ -147,6 +147,14 @@ { current_kboard->kbd_macro_end = current_kboard->kbd_macro_ptr; } + +DEFUN ("cancel-kbd-macro-events", Fcancel_kbd_macro_events, + Scancel_kbd_macro_events, 0, 0, 0, + "Cancel the events added to a keyboard macro for this command.") + () +{ + current_kboard->kbd_macro_ptr = current_kboard->kbd_macro_end; +} DEFUN ("call-last-kbd-macro", Fcall_last_kbd_macro, Scall_last_kbd_macro, 0, 1, "p", @@ -238,6 +246,7 @@ defsubr (&Send_kbd_macro); defsubr (&Scall_last_kbd_macro); defsubr (&Sexecute_kbd_macro); + defsubr (&Scancel_kbd_macro_events); DEFVAR_KBOARD ("defining-kbd-macro", defining_kbd_macro, "Non-nil while a keyboard macro is being defined. Don't set this!");