diff options
| author | Kenichi Handa | 1997-10-23 12:01:50 +0000 |
|---|---|---|
| committer | Kenichi Handa | 1997-10-23 12:01:50 +0000 |
| commit | de86fcba73eea9b378df790b508b5ef48b2353bf (patch) | |
| tree | 5df572f29cfcbcfdc488572da32f2c7df69067d6 /src | |
| parent | 82aba9f42f0971d854a6a6df43824794cb726ec7 (diff) | |
| download | emacs-de86fcba73eea9b378df790b508b5ef48b2353bf.tar.gz emacs-de86fcba73eea9b378df790b508b5ef48b2353bf.zip | |
(map_char_table): Do not operate on invalid characters.
Pay attention to `enable-multibyte-characters'.
Diffstat (limited to 'src')
| -rw-r--r-- | src/fns.c | 4 |
1 files changed, 3 insertions, 1 deletions
| @@ -1482,11 +1482,13 @@ map_char_table (c_function, function, subtable, arg, depth, indices) | |||
| 1482 | else | 1482 | else |
| 1483 | call2 (function, make_number (i), elt); | 1483 | call2 (function, make_number (i), elt); |
| 1484 | } | 1484 | } |
| 1485 | if (NILP (current_buffer->enable_multibyte_characters)) | ||
| 1486 | return; | ||
| 1485 | to = CHAR_TABLE_ORDINARY_SLOTS; | 1487 | to = CHAR_TABLE_ORDINARY_SLOTS; |
| 1486 | } | 1488 | } |
| 1487 | else | 1489 | else |
| 1488 | { | 1490 | { |
| 1489 | i = 0; | 1491 | i = 32; |
| 1490 | to = SUB_CHAR_TABLE_ORDINARY_SLOTS; | 1492 | to = SUB_CHAR_TABLE_ORDINARY_SLOTS; |
| 1491 | } | 1493 | } |
| 1492 | 1494 | ||