From 2e9dc125273510c615a4139d3320d70c9ae798ef Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Wed, 21 Jan 1998 21:57:24 +0000 Subject: [PATCH] (command_loop_1): Use unibyte_char_to_multibyte. --- src/keyboard.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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) { -- 2.39.5