summaryrefslogtreecommitdiff
path: root/src/keymap.c
diff options
context:
space:
mode:
authorKenichi Handa <handa@m17n.org>1997-02-27 07:49:24 +0000
committerKenichi Handa <handa@m17n.org>1997-02-27 07:49:24 +0000
commita20aa7210cd4b0ef56b27b128493fb11feb7b3bd (patch)
tree516234bab02fa316608bc08e0ae943444a03a0ec /src/keymap.c
parentc758053843c970f6728f5168bcd5c866b6a0d0e5 (diff)
downloademacs-a20aa7210cd4b0ef56b27b128493fb11feb7b3bd.tar.gz
(describe_vector): Do not descibe deeper char-table if
enable-multibyte-characters is nil.
Diffstat (limited to 'src/keymap.c')
-rw-r--r--src/keymap.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/keymap.c b/src/keymap.c
index e6c79606eae..d300b7a6e4e 100644
--- a/src/keymap.c
+++ b/src/keymap.c
@@ -2525,6 +2525,8 @@ describe_vector (vector, elt_prefix, elt_describer,
int from, to;
/* The current depth of VECTOR if it is char-table. */
int this_level;
+ /* Flag to tell if we should handle multibyte characters. */
+ int multibyte = !NILP (current_buffer->enable_multibyte_characters);
/* Array of indices to access each level of char-table.
The elements are charset, code1, and code2. */
int idx[3];
@@ -2676,7 +2678,7 @@ describe_vector (vector, elt_prefix, elt_describer,
/* If we find a char-table within a char-table,
scan it recursively; it defines the details for
a character set or a portion of a character set. */
- if (CHAR_TABLE_P (vector) && CHAR_TABLE_P (definition))
+ if (multibyte && CHAR_TABLE_P (vector) && CHAR_TABLE_P (definition))
{
if (this_level == 0
&& CHARSET_VALID_P (i))