summaryrefslogtreecommitdiff
path: root/src/composite.h
diff options
context:
space:
mode:
authorKenichi Handa <handa@m17n.org>2007-12-03 14:39:51 +0000
committerKenichi Handa <handa@m17n.org>2007-12-03 14:39:51 +0000
commit48bb108861c6a5eb302823603e3d70c8139d7b72 (patch)
tree03ddc07ae8b88cb6e3a83be400cbc50ddfe433a8 /src/composite.h
parentc75d4c72634a5e76dd7aeda315281f20c9aeabb1 (diff)
downloademacs-48bb108861c6a5eb302823603e3d70c8139d7b72.tar.gz
(COMPOSITION_METHOD): Handle
COMPOSITION_WITH_GLYPH_STRING.
Diffstat (limited to 'src/composite.h')
-rw-r--r--src/composite.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/composite.h b/src/composite.h
index 5a426826bcc..ab77a9f9e1d 100644
--- a/src/composite.h
+++ b/src/composite.h
@@ -92,9 +92,13 @@ extern Lisp_Object composition_temp;
: (composition_temp = XCDR (XCAR (prop)), \
(NILP (composition_temp) \
? COMPOSITION_RELATIVE \
- : ((INTEGERP (composition_temp) || STRINGP (composition_temp)) \
- ? COMPOSITION_WITH_ALTCHARS \
- : COMPOSITION_WITH_RULE_ALTCHARS))))
+ : (INTEGERP (composition_temp) || STRINGP (composition_temp)) \
+ ? COMPOSITION_WITH_ALTCHARS \
+ : (VECTORP (composition_temp) \
+ && ASIZE (composition_temp) >= 2 \
+ && VECTORP (AREF (composition_temp, 0))) \
+ ? COMPOSITION_WITH_GLYPH_STRING \
+ : COMPOSITION_WITH_RULE_ALTCHARS)))
/* Return 1 if the composition is valid. It is valid if length of
the composition equals to (END - START). */