comparison src/buffer.c @ 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 b135b01ba0e2
children 005d7ed9d69b
comparison
equal deleted inserted replaced
13269:5db7fb75222a 13270:76e69b0af94d
479 b->major_mode = Qfundamental_mode; 479 b->major_mode = Qfundamental_mode;
480 b->keymap = Qnil; 480 b->keymap = Qnil;
481 b->abbrev_table = Vfundamental_mode_abbrev_table; 481 b->abbrev_table = Vfundamental_mode_abbrev_table;
482 b->mode_name = QSFundamental; 482 b->mode_name = QSFundamental;
483 b->minor_modes = Qnil; 483 b->minor_modes = Qnil;
484
485 /* If the standard case table has been altered and invalidated,
486 fix up its insides first. */
487 if (! (CHAR_TABLE_P (XCHAR_TABLE (Vascii_downcase_table)->extras[0])
488 && CHAR_TABLE_P (XCHAR_TABLE (Vascii_downcase_table)->extras[1])
489 && CHAR_TABLE_P (XCHAR_TABLE (Vascii_downcase_table)->extras[2])))
490 Fset_standard_case_table (Vascii_downcase_table);
491
484 b->downcase_table = Vascii_downcase_table; 492 b->downcase_table = Vascii_downcase_table;
485 b->upcase_table = XCHAR_TABLE (Vascii_downcase_table)->extras[0]; 493 b->upcase_table = XCHAR_TABLE (Vascii_downcase_table)->extras[0];
486 b->case_canon_table = XCHAR_TABLE (Vascii_downcase_table)->extras[1]; 494 b->case_canon_table = XCHAR_TABLE (Vascii_downcase_table)->extras[1];
487 b->case_eqv_table = XCHAR_TABLE (Vascii_downcase_table)->extras[2]; 495 b->case_eqv_table = XCHAR_TABLE (Vascii_downcase_table)->extras[2];
488 b->buffer_file_type = Qnil; 496 b->buffer_file_type = Qnil;