]> git.eshelyaron.com Git - emacs.git/commitdiff
(command_loop_1): On entry, set last_command to this_command.
authorRichard M. Stallman <rms@gnu.org>
Sun, 13 Feb 1994 00:15:20 +0000 (00:15 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sun, 13 Feb 1994 00:15:20 +0000 (00:15 +0000)
src/keyboard.c

index 48ca4b72a123bfed6a12cd020bc3f8cf5f600771..1bab767b9a6e84e2be808da22ec68434afcbc384 100644 (file)
@@ -898,13 +898,10 @@ command_loop_1 ()
   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.  */