(char-variants): Refer `->subsumptive', `->denotational' and
authortomo <tomo>
Tue, 2 Nov 2004 15:04:55 +0000 (15:04 +0000)
committertomo <tomo>
Tue, 2 Nov 2004 15:04:55 +0000 (15:04 +0000)
`->identical' as same as `->ucs-unified'.

src/chartab.c

index 15acf41..33f1ee2 100644 (file)
@@ -1235,15 +1235,16 @@ Return variants of CHARACTER.
 */
        (character))
 {
-  Lisp_Object ret;
-
   CHECK_CHAR (character);
-  ret = Fchar_feature (character, Q_ucs_unified, Qnil,
-                      Qnil, Qnil);
-  if (CONSP (ret))
-    return Fcopy_list (ret);
-  else
-    return Qnil;
+  return
+    nconc2
+    (Fcopy_list (Fget_char_attribute (character, Q_subsumptive, Qnil)),
+     (nconc2
+      (Fcopy_list (Fget_char_attribute (character, Q_denotational, Qnil)),
+       (nconc2
+       (Fcopy_list (Fget_char_attribute (character, Q_identical, Qnil)),
+        Fcopy_list (Fchar_feature (character, Q_ucs_unified, Qnil,
+                                   Qnil, Qnil)))))));
 }
 
 #endif