changeset 6290:6ecf8ea4bd8d

(command_loop_1): On entry, set this_command after running Vpost_command_hook.
author Richard M. Stallman <rms@gnu.org>
date Thu, 10 Mar 1994 15:59:22 +0000
parents 85693b7d5231
children 38ec8e76594f
files src/keyboard.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/keyboard.c	Thu Mar 10 15:50:26 1994 +0000
+++ b/src/keyboard.c	Thu Mar 10 15:59:22 1994 +0000
@@ -908,7 +908,6 @@
   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 @@
       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.  */