aboutsummaryrefslogtreecommitdiffstats
path: root/src/fns.c
diff options
context:
space:
mode:
authorKenichi Handa2001-01-23 01:34:55 +0000
committerKenichi Handa2001-01-23 01:34:55 +0000
commit1e70fc65bc313da756c8dda63603d94d6d48d088 (patch)
tree076c1f02ca377ff870c8f74b38ef476b7205b2c5 /src/fns.c
parentd8e4f486d992ef1ca02fdbb9840b63f8ddc81697 (diff)
downloademacs-1e70fc65bc313da756c8dda63603d94d6d48d088.tar.gz
emacs-1e70fc65bc313da756c8dda63603d94d6d48d088.zip
(Fset_char_table_default): Fix to make sub char-table correctly.
Diffstat (limited to 'src/fns.c')
-rw-r--r--src/fns.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/fns.c b/src/fns.c
index 4656c41a9f3..26a03f56ef1 100644
--- a/src/fns.c
+++ b/src/fns.c
@@ -2352,10 +2352,11 @@ See also the documentation of make-char.")
2352 XCHAR_TABLE (char_table)->contents[charset + 128] = value; 2352 XCHAR_TABLE (char_table)->contents[charset + 128] = value;
2353 return value; 2353 return value;
2354 } 2354 }
2355 char_table = temp; 2355 if (SUB_CHAR_TABLE_P (temp))
2356 if (! SUB_CHAR_TABLE_P (char_table)) 2356 char_table = temp;
2357 else
2357 char_table = (XCHAR_TABLE (char_table)->contents[charset + 128] 2358 char_table = (XCHAR_TABLE (char_table)->contents[charset + 128]
2358 = make_sub_char_table (temp)); 2359 = make_sub_char_table (temp));
2359 temp = XCHAR_TABLE (char_table)->contents[code1]; 2360 temp = XCHAR_TABLE (char_table)->contents[code1];
2360 if (SUB_CHAR_TABLE_P (temp)) 2361 if (SUB_CHAR_TABLE_P (temp))
2361 XCHAR_TABLE (temp)->defalt = value; 2362 XCHAR_TABLE (temp)->defalt = value;