From: Kenichi Handa Date: Thu, 23 Oct 1997 12:01:50 +0000 (+0000) Subject: (map_char_table): Do not operate on invalid characters. X-Git-Tag: emacs-20.3~2925 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=de86fcba73eea9b378df790b508b5ef48b2353bf;p=emacs.git (map_char_table): Do not operate on invalid characters. Pay attention to `enable-multibyte-characters'. --- diff --git a/src/fns.c b/src/fns.c index d95cd072393..dc4f1a5ff3b 100644 --- a/src/fns.c +++ b/src/fns.c @@ -1482,11 +1482,13 @@ map_char_table (c_function, function, subtable, arg, depth, indices) else call2 (function, make_number (i), elt); } + if (NILP (current_buffer->enable_multibyte_characters)) + return; to = CHAR_TABLE_ORDINARY_SLOTS; } else { - i = 0; + i = 32; to = SUB_CHAR_TABLE_ORDINARY_SLOTS; }