From: Kenichi Handa Date: Mon, 31 Aug 1998 03:50:17 +0000 (+0000) Subject: (copy_text): If Vnonascii_translation_table is non-nil, try X-Git-Tag: emacs-20.4~1794 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=3b0800187df767d0518e05c534fd690e75a00311;p=emacs.git (copy_text): If Vnonascii_translation_table is non-nil, try to convert a character less than 160 to multibyte. (count_size_as_multibyte): Likewise. --- diff --git a/src/insdel.c b/src/insdel.c index 2faa53ee174..fb29518fe89 100644 --- a/src/insdel.c +++ b/src/insdel.c @@ -736,7 +736,7 @@ copy_text (from_addr, to_addr, nbytes, unsigned char workbuf[4], *str; int len; - if (c >= 0240 && c < 0400) + if ((c >= 0240 || !NILP (Vnonascii_translation_table)) && c < 0400) { c = unibyte_char_to_multibyte (c); len = CHAR_STRING (c, workbuf, str); @@ -768,7 +768,7 @@ count_size_as_multibyte (ptr, nbytes) { unsigned int c = *ptr++; - if (c < 0240) + if (c < 0240 && NILP (Vnonascii_translation_table)) outgoing_nbytes++; else {