diff options
| author | Kenichi Handa | 1999-12-15 00:02:55 +0000 |
|---|---|---|
| committer | Kenichi Handa | 1999-12-15 00:02:55 +0000 |
| commit | 759f98632fd68520f6120394ac721caf35a3c868 (patch) | |
| tree | eace8ff01430e770813f066646dd2fecb7793e0a /src | |
| parent | 66da28809c36cf4bb55711b2487a8251c3980480 (diff) | |
| download | emacs-759f98632fd68520f6120394ac721caf35a3c868.tar.gz emacs-759f98632fd68520f6120394ac721caf35a3c868.zip | |
(CATEGORY_SET): Delete codes for a composite character.
Diffstat (limited to 'src')
| -rw-r--r-- | src/category.h | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/src/category.h b/src/category.h index 644e6056523..827c6310704 100644 --- a/src/category.h +++ b/src/category.h | |||
| @@ -104,17 +104,11 @@ extern Lisp_Object _temp_category_set; | |||
| 104 | && NILP (temp = XCHAR_TABLE (table)->defalt)) \ | 104 | && NILP (temp = XCHAR_TABLE (table)->defalt)) \ |
| 105 | table = XCHAR_TABLE (table)->parent; \ | 105 | table = XCHAR_TABLE (table)->parent; \ |
| 106 | else \ | 106 | else \ |
| 107 | temp = Faref (table, \ | 107 | temp = Faref (table, make_number (c)); \ |
| 108 | make_number (COMPOSITE_CHAR_P (c) \ | ||
| 109 | ? cmpchar_component ((c), 0, 1) : (c))); \ | ||
| 110 | temp; }) | 108 | temp; }) |
| 111 | #else | 109 | #else |
| 112 | #define CATEGORY_SET(c) \ | 110 | #define CATEGORY_SET(c) \ |
| 113 | ((c) < CHAR_TABLE_SINGLE_BYTE_SLOTS \ | 111 | Faref (current_buffer->category_table, make_number (c)) |
| 114 | ? Faref (current_buffer->category_table, make_number ((unsigned char) c)) \ | ||
| 115 | : Faref (current_buffer->category_table, \ | ||
| 116 | make_number (COMPOSITE_CHAR_P (c) \ | ||
| 117 | ? cmpchar_component ((c), 0, 1) : (c)))) | ||
| 118 | #endif | 112 | #endif |
| 119 | 113 | ||
| 120 | /* Return the doc string of CATEGORY in category table TABLE. */ | 114 | /* Return the doc string of CATEGORY in category table TABLE. */ |