diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/insdel.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/insdel.c b/src/insdel.c index 805200aae56..98d55e57d1f 100644 --- a/src/insdel.c +++ b/src/insdel.c | |||
| @@ -594,7 +594,9 @@ copy_text (from_addr, to_addr, nbytes, | |||
| 594 | 594 | ||
| 595 | if (c >= 0200 && c < 0400) | 595 | if (c >= 0200 && c < 0400) |
| 596 | { | 596 | { |
| 597 | if (nonascii_insert_offset > 0) | 597 | if (! NILP (Vnonascii_translate_table)) |
| 598 | c = XINT (Faref (Vnonascii_translate_table, make_number (c))); | ||
| 599 | else if (nonascii_insert_offset > 0) | ||
| 598 | c += nonascii_insert_offset; | 600 | c += nonascii_insert_offset; |
| 599 | else | 601 | else |
| 600 | c += DEFAULT_NONASCII_INSERT_OFFSET; | 602 | c += DEFAULT_NONASCII_INSERT_OFFSET; |
| @@ -629,7 +631,9 @@ count_size_as_multibyte (ptr, nbytes) | |||
| 629 | unsigned int c = *ptr++; | 631 | unsigned int c = *ptr++; |
| 630 | if (c >= 0200 && c < 0400) | 632 | if (c >= 0200 && c < 0400) |
| 631 | { | 633 | { |
| 632 | if (nonascii_insert_offset > 0) | 634 | if (! NILP (Vnonascii_translate_table)) |
| 635 | c = XINT (Faref (Vnonascii_translate_table, make_number (c))); | ||
| 636 | else if (nonascii_insert_offset > 0) | ||
| 633 | c += nonascii_insert_offset; | 637 | c += nonascii_insert_offset; |
| 634 | else | 638 | else |
| 635 | c += DEFAULT_NONASCII_INSERT_OFFSET; | 639 | c += DEFAULT_NONASCII_INSERT_OFFSET; |