diff options
| author | Richard M. Stallman | 1998-02-12 05:19:41 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1998-02-12 05:19:41 +0000 |
| commit | 2c3af3383d981c04cc45a2a7105343ce9a269eef (patch) | |
| tree | 9d29d2eb0665fa038211982688adf45091ca781e /src | |
| parent | 1134b8547c41ce376bba631ddf644bf7d142e59b (diff) | |
| download | emacs-2c3af3383d981c04cc45a2a7105343ce9a269eef.tar.gz emacs-2c3af3383d981c04cc45a2a7105343ce9a269eef.zip | |
(copy_text, count_size_as_multibyte): Use Vnonascii_translate_table.
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; |