# HG changeset patch # User Kenichi Handa # Date 1196692791 0 # Node ID d073992bc6f37bc540e9d4a00c08c5c7382b1664 # Parent 32461c53ccb4701c171dcfd6a1406db83c6f7254 (COMPOSITION_METHOD): Handle COMPOSITION_WITH_GLYPH_STRING. diff -r 32461c53ccb4 -r d073992bc6f3 src/composite.h --- a/src/composite.h Mon Dec 03 13:54:06 2007 +0000 +++ b/src/composite.h Mon Dec 03 14:39:51 2007 +0000 @@ -92,9 +92,13 @@ : (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). */