diff options
| author | Kenichi Handa | 2005-04-22 07:11:08 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2005-04-22 07:11:08 +0000 |
| commit | 1468c19bdd7c70f503e8af37eee4c06deec4fe2d (patch) | |
| tree | 29dc44722a09f17a29018f8b7bb87be7e0fb952e /src/fns.c | |
| parent | 9a9c3a4b940d6e3f38136fc262b1c56ae574e6eb (diff) | |
| download | emacs-1468c19bdd7c70f503e8af37eee4c06deec4fe2d.tar.gz emacs-1468c19bdd7c70f503e8af37eee4c06deec4fe2d.zip | |
(copy_sub_char_table): Explicitly copy the default value
of the sub-chartable.
Diffstat (limited to 'src/fns.c')
| -rw-r--r-- | src/fns.c | 3 |
1 files changed, 2 insertions, 1 deletions
| @@ -462,9 +462,10 @@ static Lisp_Object | |||
| 462 | copy_sub_char_table (arg) | 462 | copy_sub_char_table (arg) |
| 463 | Lisp_Object arg; | 463 | Lisp_Object arg; |
| 464 | { | 464 | { |
| 465 | Lisp_Object copy = make_sub_char_table (XCHAR_TABLE (arg)->defalt); | 465 | Lisp_Object copy = make_sub_char_table (Qnil); |
| 466 | int i; | 466 | int i; |
| 467 | 467 | ||
| 468 | XCHAR_TABLE (copy)->defalt = XCHAR_TABLE (arg)->defalt; | ||
| 468 | /* Copy all the contents. */ | 469 | /* Copy all the contents. */ |
| 469 | bcopy (XCHAR_TABLE (arg)->contents, XCHAR_TABLE (copy)->contents, | 470 | bcopy (XCHAR_TABLE (arg)->contents, XCHAR_TABLE (copy)->contents, |
| 470 | SUB_CHAR_TABLE_ORDINARY_SLOTS * sizeof (Lisp_Object)); | 471 | SUB_CHAR_TABLE_ORDINARY_SLOTS * sizeof (Lisp_Object)); |