From 51d5a2c95f507e988922ccd80828a1c73405bdd7 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Thu, 10 Mar 1994 15:59:22 +0000 Subject: [PATCH] (command_loop_1): On entry, set this_command after running Vpost_command_hook. --- src/keyboard.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 () nonundocount = 0; no_redisplay = 0; this_command_key_count = 0; - last_command = this_command; /* Make sure this hook runs after commands that get errors and throw to top level. */ @@ -924,6 +923,9 @@ command_loop_1 () Vpost_command_hook = Vcommand_hook_internal; } + /* Do this after running Vpost_command_hook, for consistency. */ + last_command = this_command; + while (1) { /* Install chars successfully executed in kbd macro. */ -- 2.39.5