diff options
author | Kenichi Handa <handa@m17n.org> | 1997-06-09 13:00:07 +0000 |
---|---|---|
committer | Kenichi Handa <handa@m17n.org> | 1997-06-09 13:00:07 +0000 |
commit | 6ba27c81806d3dc5ae3bae60e47b85b83315f5e7 (patch) | |
tree | c843565b1b80a1e1e4ca33082fed2a0cb1e43d4c /src | |
parent | c15b3d88019b6a74979e27d800a6c1f65f1fa2ea (diff) | |
download | emacs-6ba27c81806d3dc5ae3bae60e47b85b83315f5e7.tar.gz |
(Faset): Inherit default value correctly while creating
sub char table.
Diffstat (limited to 'src')
-rw-r--r-- | src/data.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/data.c b/src/data.c index 9a0788ae719..5fb57407cba 100644 --- a/src/data.c +++ b/src/data.c @@ -1701,9 +1701,12 @@ IDX starts at 0.") 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; } |