diff options
| author | Gerd Moellmann | 2000-01-11 13:11:14 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2000-01-11 13:11:14 +0000 |
| commit | fb0dde6c6209f004134543070bd658f3286f5a3b (patch) | |
| tree | a59c4b92296d0fd50ca0069c9a12221bb3e25f82 /src | |
| parent | a970dae404617cab3ac465d41a988c73f494ed28 (diff) | |
| download | emacs-fb0dde6c6209f004134543070bd658f3286f5a3b.tar.gz emacs-fb0dde6c6209f004134543070bd658f3286f5a3b.zip | |
(Fclear_this_command_keys): Clear recent_keys
vector, too.
Diffstat (limited to 'src')
| -rw-r--r-- | src/keyboard.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/keyboard.c b/src/keyboard.c index 7066a56360c..8b4bbe8606a 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -8962,7 +8962,14 @@ DEFUN ("clear-this-command-keys", Fclear_this_command_keys, | |||
| 8962 | "Clear out the vector that `this-command-keys' returns.") | 8962 | "Clear out the vector that `this-command-keys' returns.") |
| 8963 | () | 8963 | () |
| 8964 | { | 8964 | { |
| 8965 | int i; | ||
| 8966 | |||
| 8965 | this_command_key_count = 0; | 8967 | this_command_key_count = 0; |
| 8968 | |||
| 8969 | for (i = 0; i < XVECTOR (recent_keys)->size; ++i) | ||
| 8970 | XVECTOR (recent_keys)->contents[i] = Qnil; | ||
| 8971 | total_keys = 0; | ||
| 8972 | recent_keys_index = 0; | ||
| 8966 | return Qnil; | 8973 | return Qnil; |
| 8967 | } | 8974 | } |
| 8968 | 8975 | ||