]> git.eshelyaron.com Git - emacs.git/commitdiff
(CATEGORY_SET): Delete codes for a composite character.
authorKenichi Handa <handa@m17n.org>
Wed, 15 Dec 1999 00:02:55 +0000 (00:02 +0000)
committerKenichi Handa <handa@m17n.org>
Wed, 15 Dec 1999 00:02:55 +0000 (00:02 +0000)
src/category.h

index 644e605652345baedbee989598bb5d00a9941d5e..827c6310704ba0ce3e9d32f33d8d546dd6787a95 100644 (file)
@@ -104,17 +104,11 @@ extern Lisp_Object _temp_category_set;
              && NILP (temp = XCHAR_TABLE (table)->defalt))                  \
         table = XCHAR_TABLE (table)->parent;                                \
      else                                                                   \
-       temp = Faref (table,                                                 \
-                    make_number (COMPOSITE_CHAR_P (c)                       \
-                                 ? cmpchar_component ((c), 0, 1) : (c)));   \
+       temp = Faref (table, make_number (c));                               \
      temp; })
 #else
-#define CATEGORY_SET(c)                                                             \
-  ((c) < CHAR_TABLE_SINGLE_BYTE_SLOTS                                       \
-   ? Faref (current_buffer->category_table, make_number ((unsigned char) c)) \
-   : Faref (current_buffer->category_table,                                 \
-           make_number (COMPOSITE_CHAR_P (c)                                \
-                        ? cmpchar_component ((c), 0, 1) : (c))))
+#define CATEGORY_SET(c) \
+  Faref (current_buffer->category_table, make_number (c))
 #endif   
 
 /* Return the doc string of CATEGORY in category table TABLE.  */