diff options
| author | Richard M. Stallman | 1994-02-13 00:15:20 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-02-13 00:15:20 +0000 |
| commit | 188420314b1f5f6ee53751369b2ed2c9fb9fd612 (patch) | |
| tree | ad77cf69e6754cde9ef500e88d96ca7bd2b311f3 /src | |
| parent | afd359c4bb738e74a9f821f74d4e4aebddf70957 (diff) | |
| download | emacs-188420314b1f5f6ee53751369b2ed2c9fb9fd612.tar.gz emacs-188420314b1f5f6ee53751369b2ed2c9fb9fd612.zip | |
(command_loop_1): On entry, set last_command to this_command.
Diffstat (limited to 'src')
| -rw-r--r-- | src/keyboard.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/keyboard.c b/src/keyboard.c index 48ca4b72a12..1bab767b9a6 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -898,13 +898,10 @@ command_loop_1 () | |||
| 898 | waiting_for_input = 0; | 898 | waiting_for_input = 0; |
| 899 | cancel_echoing (); | 899 | cancel_echoing (); |
| 900 | 900 | ||
| 901 | /* Don't clear out last_command at the beginning of a macro. */ | ||
| 902 | if (XTYPE (Vexecuting_macro) != Lisp_String) | ||
| 903 | last_command = Qt; | ||
| 904 | |||
| 905 | nonundocount = 0; | 901 | nonundocount = 0; |
| 906 | no_redisplay = 0; | 902 | no_redisplay = 0; |
| 907 | this_command_key_count = 0; | 903 | this_command_key_count = 0; |
| 904 | last_command = this_command; | ||
| 908 | 905 | ||
| 909 | /* Make sure this hook runs after commands that get errors and | 906 | /* Make sure this hook runs after commands that get errors and |
| 910 | throw to top level. */ | 907 | throw to top level. */ |