# HG changeset patch # User Kenichi Handa # Date 865861207 0 # Node ID 8704dc91a5b34f1364a2d4e6a7e1dd2e225366a2 # Parent d84dde1fad165c5b9aaa9ff525ea9c91b79177ca (Faset): Inherit default value correctly while creating sub char table. diff -r d84dde1fad16 -r 8704dc91a5b3 src/data.c --- a/src/data.c Mon Jun 09 12:59:52 1997 +0000 +++ b/src/data.c Mon Jun 09 13:00:07 1997 +0000 @@ -1701,9 +1701,12 @@ array = val; else /* VAL is a leaf. Create a sub char table with the - default value VAL here and look into it. */ + default value VAL or XCHAR_TABLE (array)->defalt + and look into it. */ array = (XCHAR_TABLE (array)->contents[code[i]] - = make_sub_char_table (val)); + = make_sub_char_table (NILP (val) + ? XCHAR_TABLE (array)->defalt + : val)); } XCHAR_TABLE (array)->contents[code[i]] = newelt; }