Mercurial > emacs
diff src/chartab.c @ 99143:f0ad9e3cb1a4
(Foptimize_char_table): Make sure `ascii' doesn't point to
the previous unoptimized table.
| author | Stefan Monnier <monnier@iro.umontreal.ca> |
|---|---|
| date | Sun, 26 Oct 2008 04:23:08 +0000 |
| parents | a4677d55715f |
| children | 203b7f0b2698 |
line wrap: on
line diff
--- a/src/chartab.c Sun Oct 26 04:13:46 2008 +0000 +++ b/src/chartab.c Sun Oct 26 04:23:08 2008 +0000 @@ -703,6 +703,9 @@ XCHAR_TABLE (char_table)->contents[i] = optimize_sub_char_table (elt, test); } + /* Reset the `ascii' cache, in case it got optimized away. */ + XCHAR_TABLE (char_table)->ascii = char_table_ascii (char_table); + return Qnil; }
