(Fput_char_attribute): Accept nil as a value of CCS-feature [it means
authortomo <tomo>
Fri, 22 Jul 2011 16:32:58 +0000 (16:32 +0000)
committertomo <tomo>
Fri, 22 Jul 2011 16:32:58 +0000 (16:32 +0000)
that specified object does not have code-point of the CCS-feature].

src/chartab.c

index b97f39d..7967606 100644 (file)
@@ -3568,7 +3568,8 @@ Store CHARACTER's ATTRIBUTE with VALUE.
 
   if (!NILP (ccs))
     {
-      value = put_char_ccs_code_point (character, ccs, value);
+      if ( !NILP (value) )
+       value = put_char_ccs_code_point (character, ccs, value);
       attribute = XCHARSET_NAME (ccs);
     }
   else if (