From: Richard M. Stallman Date: Wed, 21 Jan 1998 21:57:24 +0000 (+0000) Subject: (command_loop_1): Use unibyte_char_to_multibyte. X-Git-Tag: emacs-20.3~2372 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=2e9dc125273510c615a4139d3320d70c9ae798ef;p=emacs.git (command_loop_1): Use unibyte_char_to_multibyte. --- diff --git a/src/keyboard.c b/src/keyboard.c index 7e640ae074d..e297162cac2 100644 --- a/src/keyboard.c +++ b/src/keyboard.c @@ -502,8 +502,6 @@ int timers_run; extern Lisp_Object Vprint_level, Vprint_length; -extern nonascii_insert_offset; - /* Address (if not 0) of EMACS_TIME to zero out if a SIGIO interrupt happens. */ EMACS_TIME *input_available_clear_time; @@ -1390,9 +1388,8 @@ command_loop_1 () /* Add the offset to the character, for Finsert_char. We pass internal_self_insert the unmodified character because it itself does this offsetting. */ - if (lose >= 0200 && lose <= 0377 - && ! NILP (current_buffer->enable_multibyte_characters)) - lose += nonascii_insert_offset; + if (! NILP (current_buffer->enable_multibyte_characters)) + lose = unibyte_char_to_multibyte (lose); if (dp) {