changeset 17111:60ad27660a65

(describe_vector): Do not descibe deeper char-table if enable-multibyte-characters is nil.
author Kenichi Handa <handa@m17n.org>
date Thu, 27 Feb 1997 07:49:24 +0000
parents 3a348cbb354f
children 5c48ff325655
files src/keymap.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/keymap.c	Thu Feb 27 07:48:21 1997 +0000
+++ b/src/keymap.c	Thu Feb 27 07:49:24 1997 +0000
@@ -2525,6 +2525,8 @@
   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 @@
       /* 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))