# HG changeset patch # User Kenichi Handa # Date 911179026 0 # Node ID a31bf9d72c5645c128aa3f7f3b8b2994b765f291 # Parent 5108cfb51c512d26f158e2625ebf7da6c6948990 (SYNTAX_ENTRY_INT): For a composite character, check the first component. diff -r 5108cfb51c51 -r a31bf9d72c56 src/syntax.h --- 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. */