changeset 5934:9699f3d409e5

(command_loop_1): On entry, set last_command to this_command.
author Richard M. Stallman <rms@gnu.org>
date Sun, 13 Feb 1994 00:15:20 +0000
parents 560cee2048ed
children a2b7fc4645d9
files src/keyboard.c
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/keyboard.c	Sat Feb 12 22:32:39 1994 +0000
+++ b/src/keyboard.c	Sun Feb 13 00:15:20 1994 +0000
@@ -898,13 +898,10 @@
   waiting_for_input = 0;
   cancel_echoing ();
 
-  /* Don't clear out last_command at the beginning of a macro.  */
-  if (XTYPE (Vexecuting_macro) != Lisp_String)
-    last_command = Qt;
-
   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.  */