changeset 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 ed258613edc7
children b7eb74a4d86b
files src/ChangeLog src/chartab.c
diffstat 2 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Sun Oct 26 04:13:46 2008 +0000
+++ b/src/ChangeLog	Sun Oct 26 04:23:08 2008 +0000
@@ -1,5 +1,8 @@
 2008-10-26  Stefan Monnier  <monnier@iro.umontreal.ca>
 
+	* chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
+	the previous unoptimized table.
+
 	* window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
 	the distinction between non-nil and non-t value of `dedicated'.
 
--- 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;
 }