]> git.eshelyaron.com Git - emacs.git/commitdiff
(command_loop_1): Use unibyte_char_to_multibyte.
authorRichard M. Stallman <rms@gnu.org>
Wed, 21 Jan 1998 21:57:24 +0000 (21:57 +0000)
committerRichard M. Stallman <rms@gnu.org>
Wed, 21 Jan 1998 21:57:24 +0000 (21:57 +0000)
src/keyboard.c

index 7e640ae074d41416b62271c5b9217026f206dc6d..e297162cac201e7522a286eaee2262761686a155 100644 (file)
@@ -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)
                        {