changeset 23713:a31bf9d72c56

(SYNTAX_ENTRY_INT): For a composite character, check the first component.
author Kenichi Handa <handa@m17n.org>
date Mon, 16 Nov 1998 01:17:06 +0000
parents 5108cfb51c51
children e1072726334b
files src/syntax.h
diffstat 1 files changed, 6 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/syntax.h	Sun Nov 15 17:45:33 1998 +0000
+++ b/src/syntax.h	Mon Nov 16 01:17:06 1998 +0000
@@ -105,11 +105,14 @@
 #  define CURRENT_SYNTAX_TABLE current_buffer->syntax_table
 #endif
 
-#define SYNTAX_ENTRY_INT(c)						\
+#define SYNTAX_ENTRY_INT(c)					\
   ((c) < CHAR_TABLE_SINGLE_BYTE_SLOTS				\
-   ? SYNTAX_ENTRY_FOLLOW_PARENT (CURRENT_SYNTAX_TABLE,	\
+   ? SYNTAX_ENTRY_FOLLOW_PARENT (CURRENT_SYNTAX_TABLE,		\
 				 (unsigned char) (c))		\
-   : Faref (CURRENT_SYNTAX_TABLE, make_number ((c))))
+   : Faref (CURRENT_SYNTAX_TABLE,				\
+	    make_number (COMPOSITE_CHAR_P (c)			\
+			 ? cmpchar_component ((c), 0, 1)	\
+			 : (c))))
 
 /* Extract the information from the entry for character C
    in the current syntax table.  */