changeset 13270:76e69b0af94d

(reset_buffer_local_variables): Call Fset_standard_case_table if std case table seems to have been changed.
author Richard M. Stallman <rms@gnu.org>
date Sun, 22 Oct 1995 16:40:53 +0000
parents 5db7fb75222a
children 6a084ce822e0
files src/buffer.c
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/buffer.c	Sun Oct 22 16:32:24 1995 +0000
+++ b/src/buffer.c	Sun Oct 22 16:40:53 1995 +0000
@@ -481,6 +481,14 @@
   b->abbrev_table = Vfundamental_mode_abbrev_table;
   b->mode_name = QSFundamental;
   b->minor_modes = Qnil;
+
+  /* If the standard case table has been altered and invalidated,
+     fix up its insides first.  */
+  if (! (CHAR_TABLE_P (XCHAR_TABLE (Vascii_downcase_table)->extras[0])
+	 && CHAR_TABLE_P (XCHAR_TABLE (Vascii_downcase_table)->extras[1])
+	 && CHAR_TABLE_P (XCHAR_TABLE (Vascii_downcase_table)->extras[2])))
+    Fset_standard_case_table (Vascii_downcase_table);
+
   b->downcase_table = Vascii_downcase_table;
   b->upcase_table = XCHAR_TABLE (Vascii_downcase_table)->extras[0];
   b->case_canon_table = XCHAR_TABLE (Vascii_downcase_table)->extras[1];