From: Richard M. Stallman Date: Sun, 13 Feb 1994 00:15:20 +0000 (+0000) Subject: (command_loop_1): On entry, set last_command to this_command. X-Git-Tag: emacs-19.34~9918 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=188420314b1f5f6ee53751369b2ed2c9fb9fd612;p=emacs.git (command_loop_1): On entry, set last_command to this_command. --- diff --git a/src/keyboard.c b/src/keyboard.c index 48ca4b72a12..1bab767b9a6 100644 --- a/src/keyboard.c +++ b/src/keyboard.c @@ -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. */