/* Backward compatibility. */
if (NILP (c))
c = last_command_event;
+ else
+ last_command_event = c;
if (XFIXNUM (n) < 0)
error ("Negative repetition argument %"pI"d", XFIXNUM (n));
/* Barf if the key that invoked this was not a character. */
if (!CHARACTERP (c))
bitch_at_user ();
- else {
- int character = translate_char (Vtranslation_table_for_input,
- XFIXNUM (c));
- int val = internal_self_insert (character, XFIXNAT (n));
- if (val == 2)
- Fset (Qundo_auto__this_command_amalgamating, Qnil);
- frame_make_pointer_invisible (SELECTED_FRAME ());
- }
+ else
+ {
+ int character = translate_char (Vtranslation_table_for_input,
+ XFIXNUM (c));
+ int val = internal_self_insert (character, XFIXNAT (n));
+ if (val == 2)
+ Fset (Qundo_auto__this_command_amalgamating, Qnil);
+ frame_make_pointer_invisible (SELECTED_FRAME ());
+ }
return Qnil;
}