# HG changeset patch # User Kenichi Handa # Date 1251352884 0 # Node ID 8cc773a4c3d74c214dd758d1ce59bc9ff84fa193 # Parent af7c656cbfc98d942f869bc7cac343acdb1e0325 (Fself_insert_command): Avoid unnecessay unibyte->multibyte conversion. diff -r af7c656cbfc9 -r 8cc773a4c3d7 src/cmds.c --- a/src/cmds.c Thu Aug 27 05:19:42 2009 +0000 +++ b/src/cmds.c Thu Aug 27 06:01:24 2009 +0000 @@ -360,20 +360,13 @@ XINT (last_command_event)); if (XINT (n) >= 2 && NILP (current_buffer->overwrite_mode)) { - int modified_char = character; - /* Add the offset to the character, for Finsert_char. - We pass internal_self_insert the unmodified character - because it itself does this offsetting. */ - if (! NILP (current_buffer->enable_multibyte_characters)) - modified_char = unibyte_char_to_multibyte (modified_char); - XSETFASTINT (n, XFASTINT (n) - 2); /* The first one might want to expand an abbrev. */ internal_self_insert (character, 1); /* The bulk of the copies of this char can be inserted simply. We don't have to handle a user-specified face specially because it will get inherited from the first char inserted. */ - Finsert_char (make_number (modified_char), n, Qt); + Finsert_char (make_number (character), n, Qt); /* The last one might want to auto-fill. */ internal_self_insert (character, 0); }