]> git.eshelyaron.com Git - emacs.git/commitdiff
(copy_text): Fix previous change, call
authorKenichi Handa <handa@m17n.org>
Sat, 15 Aug 1998 01:28:14 +0000 (01:28 +0000)
committerKenichi Handa <handa@m17n.org>
Sat, 15 Aug 1998 01:28:14 +0000 (01:28 +0000)
multibyte_char_to_unibyte.

src/insdel.c

index 4b906dc3f32dcd95645b0372d031bd471406e006..06a05ebe34ce2e29fb3a54d6c3b02d9a2c63846b 100644 (file)
@@ -717,18 +717,7 @@ copy_text (from_addr, to_addr, nbytes,
          int thislen, c, c_save;
          c = c_save = STRING_CHAR_AND_LENGTH (from_addr, bytes_left, thislen);
          if (!SINGLE_BYTE_CHAR_P (c))
-           {
-             if (!NILP (tbl))
-               {
-                 temp = Faref (tbl, make_number (c));
-                 if (INTEGERP (temp))
-                   c = XINT (temp);
-               }
-             else if (nonascii_insert_offset > 0)
-               c -= nonascii_insert_offset;
-             if (c < 128 || c >= 256)
-               c = (c_save & 0177) + 0200;
-           }
+           c = multibyte_char_to_unibyte (c, tbl);
          *to_addr++ = c;
          from_addr += thislen;
          bytes_left -= thislen;