comparison src/keyboard.c @ 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 db4139d43f8a
children 55281847e831
comparison
equal deleted inserted replaced
6289:85693b7d5231 6290:6ecf8ea4bd8d
906 cancel_echoing (); 906 cancel_echoing ();
907 907
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. */
915 if (!NILP (Vpost_command_hook) && !NILP (Vrun_hooks)) 914 if (!NILP (Vpost_command_hook) && !NILP (Vrun_hooks))
916 { 915 {
921 920
922 call1 (Vrun_hooks, Qcommand_hook_internal); 921 call1 (Vrun_hooks, Qcommand_hook_internal);
923 922
924 Vpost_command_hook = Vcommand_hook_internal; 923 Vpost_command_hook = Vcommand_hook_internal;
925 } 924 }
925
926 /* Do this after running Vpost_command_hook, for consistency. */
927 last_command = this_command;
926 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. */
930 932