diff options
| author | Kenichi Handa | 1998-11-16 01:17:06 +0000 |
|---|---|---|
| committer | Kenichi Handa | 1998-11-16 01:17:06 +0000 |
| commit | 0b58a513d939b4433e99da3be12634e942f80107 (patch) | |
| tree | 155b65fa55e1b1ff3f81bbc5768360951e14cf6b /src | |
| parent | 436cc82c6ae2c0a1905d852afe3486a4b6fa5d35 (diff) | |
| download | emacs-0b58a513d939b4433e99da3be12634e942f80107.tar.gz emacs-0b58a513d939b4433e99da3be12634e942f80107.zip | |
(SYNTAX_ENTRY_INT): For a composite character, check
the first component.
Diffstat (limited to 'src')
| -rw-r--r-- | src/syntax.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/syntax.h b/src/syntax.h index 4b58b5da636..010f063e677 100644 --- a/src/syntax.h +++ b/src/syntax.h | |||
| @@ -105,11 +105,14 @@ extern Lisp_Object syntax_parent_lookup P_ ((Lisp_Object, int)); | |||
| 105 | # define CURRENT_SYNTAX_TABLE current_buffer->syntax_table | 105 | # define CURRENT_SYNTAX_TABLE current_buffer->syntax_table |
| 106 | #endif | 106 | #endif |
| 107 | 107 | ||
| 108 | #define SYNTAX_ENTRY_INT(c) \ | 108 | #define SYNTAX_ENTRY_INT(c) \ |
| 109 | ((c) < CHAR_TABLE_SINGLE_BYTE_SLOTS \ | 109 | ((c) < CHAR_TABLE_SINGLE_BYTE_SLOTS \ |
| 110 | ? SYNTAX_ENTRY_FOLLOW_PARENT (CURRENT_SYNTAX_TABLE, \ | 110 | ? SYNTAX_ENTRY_FOLLOW_PARENT (CURRENT_SYNTAX_TABLE, \ |
| 111 | (unsigned char) (c)) \ | 111 | (unsigned char) (c)) \ |
| 112 | : Faref (CURRENT_SYNTAX_TABLE, make_number ((c)))) | 112 | : Faref (CURRENT_SYNTAX_TABLE, \ |
| 113 | make_number (COMPOSITE_CHAR_P (c) \ | ||
| 114 | ? cmpchar_component ((c), 0, 1) \ | ||
| 115 | : (c)))) | ||
| 113 | 116 | ||
| 114 | /* Extract the information from the entry for character C | 117 | /* Extract the information from the entry for character C |
| 115 | in the current syntax table. */ | 118 | in the current syntax table. */ |