aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1998-10-13 03:46:13 +0000
committerRichard M. Stallman1998-10-13 03:46:13 +0000
commit82e6e5afd830ca81edbd4a675da204df88ab7eed (patch)
tree6c49b57727d7d3eb894189198bc25636b4b3acb1
parent2a56a3540bd7bc58d4a9604ed67aa9a76a0d874f (diff)
downloademacs-82e6e5afd830ca81edbd4a675da204df88ab7eed.tar.gz
emacs-82e6e5afd830ca81edbd4a675da204df88ab7eed.zip
(Fclear_this_command_keys): New function.
(syms_of_keyboard): defsubr it.
-rw-r--r--src/keyboard.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/keyboard.c b/src/keyboard.c
index bc3d177a766..730b07a9531 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -8243,6 +8243,15 @@ appears in the echo area and in the value of `this-command-keys.'.")
8243 return Qnil; 8243 return Qnil;
8244} 8244}
8245 8245
8246DEFUN ("clear-this-command-keys", Fclear_this_command_keys,
8247 Sclear_this_command_keys, 0, 0, 0,
8248 "Clear out the vector that `this-command-keys' returns.")
8249 ()
8250{
8251 this_command_key_count = 0;
8252 return Qnil;
8253}
8254
8246DEFUN ("recursion-depth", Frecursion_depth, Srecursion_depth, 0, 0, 0, 8255DEFUN ("recursion-depth", Frecursion_depth, Srecursion_depth, 0, 0, 0,
8247 "Return the current depth in recursive edits.") 8256 "Return the current depth in recursive edits.")
8248 () 8257 ()
@@ -9062,6 +9071,7 @@ syms_of_keyboard ()
9062 defsubr (&Sthis_single_command_keys); 9071 defsubr (&Sthis_single_command_keys);
9063 defsubr (&Sthis_single_command_raw_keys); 9072 defsubr (&Sthis_single_command_raw_keys);
9064 defsubr (&Sreset_this_command_lengths); 9073 defsubr (&Sreset_this_command_lengths);
9074 defsubr (&Sclear_this_command_keys);
9065 defsubr (&Ssuspend_emacs); 9075 defsubr (&Ssuspend_emacs);
9066 defsubr (&Sabort_recursive_edit); 9076 defsubr (&Sabort_recursive_edit);
9067 defsubr (&Sexit_recursive_edit); 9077 defsubr (&Sexit_recursive_edit);