aboutsummaryrefslogtreecommitdiffstats
path: root/src/data.c
diff options
context:
space:
mode:
authorKenichi Handa1997-06-09 13:00:07 +0000
committerKenichi Handa1997-06-09 13:00:07 +0000
commitc8823c61e4a5c9f0e175474a1d9c91aabdfdeeab (patch)
treee075c3a971c3d5d6d10e3571b16b75618c6972a8 /src/data.c
parent115af12793ece3bb37b83a2564444898ba4dc2ce (diff)
downloademacs-c8823c61e4a5c9f0e175474a1d9c91aabdfdeeab.tar.gz
emacs-c8823c61e4a5c9f0e175474a1d9c91aabdfdeeab.zip
(Faset): Inherit default value correctly while creating
sub char table.
Diffstat (limited to 'src/data.c')
-rw-r--r--src/data.c7
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.")
1701 array = val; 1701 array = val;
1702 else 1702 else
1703 /* VAL is a leaf. Create a sub char table with the 1703 /* VAL is a leaf. Create a sub char table with the
1704 default value VAL here and look into it. */ 1704 default value VAL or XCHAR_TABLE (array)->defalt
1705 and look into it. */
1705 array = (XCHAR_TABLE (array)->contents[code[i]] 1706 array = (XCHAR_TABLE (array)->contents[code[i]]
1706 = make_sub_char_table (val)); 1707 = make_sub_char_table (NILP (val)
1708 ? XCHAR_TABLE (array)->defalt
1709 : val));
1707 } 1710 }
1708 XCHAR_TABLE (array)->contents[code[i]] = newelt; 1711 XCHAR_TABLE (array)->contents[code[i]] = newelt;
1709 } 1712 }