Function: clear-this-command-keys
clear-this-command-keys is a function defined in keyboard.c.
Signature
(clear-this-command-keys &optional KEEP-RECORD)
Documentation
Clear out the vector that this-command-keys returns.
Also clear the record of the last 300 input events, unless optional arg KEEP-RECORD is non-nil.
Probably introduced at or before Emacs version 20.4.
Source Code
// Defined in /usr/src/emacs/src/keyboard.c
{
int i;
this_command_key_count = 0;
if (NILP (keep_record))
{
for (i = 0; i < ASIZE (recent_keys); ++i)
ASET (recent_keys, i, Qnil);
total_keys = 0;
recent_keys_index = 0;
}
return Qnil;
}