(COMPOSITION_MODIFICATION_FUNC): If PROP is not a cons, return Qnil.
authorKenichi Handa <handa@m17n.org>
Mon, 19 Aug 2002 02:46:28 +0000 (02:46 +0000)
committerKenichi Handa <handa@m17n.org>
Mon, 19 Aug 2002 02:46:28 +0000 (02:46 +0000)
src/composite.h

index e30deab..ce47aee 100644 (file)
@@ -76,7 +76,7 @@ extern Lisp_Object composition_temp;
 #define COMPOSITION_MODIFICATION_FUNC(prop)    \
   (COMPOSITION_REGISTERD_P (prop)              \
    ? XCDR (XCDR (XCDR (prop)))                 \
-   : XCDR (prop))
+   : CONSP (prop) ? XCDR (prop) : Qnil)
 
 /* Return the method of composition.  */
 #define COMPOSITION_METHOD(prop)                                       \