diff options
| author | Richard M. Stallman | 1994-03-10 15:59:22 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-03-10 15:59:22 +0000 |
| commit | 51d5a2c95f507e988922ccd80828a1c73405bdd7 (patch) | |
| tree | 31250ae95ae4637be62f8a1fd87e795c29f0cfb6 /src | |
| parent | 432240423b5416efe68f55754b840508dbdc69ea (diff) | |
| download | emacs-51d5a2c95f507e988922ccd80828a1c73405bdd7.tar.gz emacs-51d5a2c95f507e988922ccd80828a1c73405bdd7.zip | |
(command_loop_1): On entry, set this_command
after running Vpost_command_hook.
Diffstat (limited to 'src')
| -rw-r--r-- | src/keyboard.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/keyboard.c b/src/keyboard.c index 7bd709ae1d4..e07e62be495 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -908,7 +908,6 @@ command_loop_1 () | |||
| 908 | nonundocount = 0; | 908 | nonundocount = 0; |
| 909 | no_redisplay = 0; | 909 | no_redisplay = 0; |
| 910 | this_command_key_count = 0; | 910 | this_command_key_count = 0; |
| 911 | last_command = this_command; | ||
| 912 | 911 | ||
| 913 | /* Make sure this hook runs after commands that get errors and | 912 | /* Make sure this hook runs after commands that get errors and |
| 914 | throw to top level. */ | 913 | throw to top level. */ |
| @@ -924,6 +923,9 @@ command_loop_1 () | |||
| 924 | Vpost_command_hook = Vcommand_hook_internal; | 923 | Vpost_command_hook = Vcommand_hook_internal; |
| 925 | } | 924 | } |
| 926 | 925 | ||
| 926 | /* Do this after running Vpost_command_hook, for consistency. */ | ||
| 927 | last_command = this_command; | ||
| 928 | |||
| 927 | while (1) | 929 | while (1) |
| 928 | { | 930 | { |
| 929 | /* Install chars successfully executed in kbd macro. */ | 931 | /* Install chars successfully executed in kbd macro. */ |