]> git.eshelyaron.com Git - emacs.git/commitdiff
* syntax.c (init_syntax_once): Adjust comment and do an early
authorDmitry Antipov <dmantipov@yandex.ru>
Mon, 26 Aug 2013 05:20:59 +0000 (09:20 +0400)
committerDmitry Antipov <dmantipov@yandex.ru>
Mon, 26 Aug 2013 05:20:59 +0000 (09:20 +0400)
initialization of Qchar_table_extra_slots just once...
* casetab.c (init_casetab_once):
* category.c (init_category_once):
* character.c (syms_of_character):
* coding.c (syms_of_coding):
* xdisp.c (syms_of_xdisp): ...and omit it here.

src/ChangeLog
src/casetab.c
src/category.c
src/character.c
src/coding.c
src/syntax.c
src/xdisp.c

index 70d722a02a4c69b3aaaae2349ae8ce0cbc5d5ce9..f2bb1feb2c2a0b7d77849e12e4029989ceab8a15 100644 (file)
@@ -1,3 +1,13 @@
+2013-08-26  Dmitry Antipov  <dmantipov@yandex.ru>
+
+       * syntax.c (init_syntax_once): Adjust comment and do an early
+       initialization of Qchar_table_extra_slots just once...
+       * casetab.c (init_casetab_once):
+       * category.c (init_category_once):
+       * character.c (syms_of_character):
+       * coding.c (syms_of_coding):
+       * xdisp.c (syms_of_xdisp): ...and omit it here.
+
 2013-08-24  Eli Zaretskii  <eliz@gnu.org>
 
        * xdisp.c (get_next_display_element): Don't apply to characters
index 5f3c8db2869801695722906187bbaf0e5124f9e7..b6b1c99c39fb5a7084910d77a1ea4a6a65965aaf 100644 (file)
@@ -247,15 +247,8 @@ init_casetab_once (void)
 {
   register int i;
   Lisp_Object down, up, eqv;
-  DEFSYM (Qcase_table, "case-table");
-
-  /* Intern this now in case it isn't already done.
-     Setting this variable twice is harmless.
-     But don't staticpro it here--that is done in alloc.c.  */
-  Qchar_table_extra_slots = intern_c_string ("char-table-extra-slots");
 
-  /* Now we are ready to set up this property, so we can
-     create char tables.  */
+  DEFSYM (Qcase_table, "case-table");
   Fput (Qcase_table, Qchar_table_extra_slots, make_number (3));
 
   down = Fmake_char_table (Qcase_table, Qnil);
index 30ffbd0890f11ad9c1817f17119a71199aab2e17..b28978fb721cbe35a4be8a81050b7791f3552bb5 100644 (file)
@@ -460,14 +460,6 @@ init_category_once (void)
 {
   /* This has to be done here, before we call Fmake_char_table.  */
   DEFSYM (Qcategory_table, "category-table");
-
-  /* Intern this now in case it isn't already done.
-     Setting this variable twice is harmless.
-     But don't staticpro it here--that is done in alloc.c.  */
-  Qchar_table_extra_slots = intern_c_string ("char-table-extra-slots");
-
-  /* Now we are ready to set up this property, so we can
-     create category tables.  */
   Fput (Qcategory_table, Qchar_table_extra_slots, make_number (2));
 
   Vstandard_category_table = Fmake_char_table (Qcategory_table, Qnil);
index 1bde2364e37fecb98c6cd265a2c3d298a82a570f..6fefb6e8824f639ee8ec0c683949e626fb50234e 100644 (file)
@@ -1072,10 +1072,6 @@ A char-table for width (columns) of each character.  */);
               doc: /* Char table of script symbols.
 It has one extra slot whose value is a list of script symbols.  */);
 
-  /* Intern this now in case it isn't already done.
-     Setting this variable twice is harmless.
-     But don't staticpro it here--that is done in alloc.c.  */
-  Qchar_table_extra_slots = intern_c_string ("char-table-extra-slots");
   DEFSYM (Qchar_script_table, "char-script-table");
   Fput (Qchar_script_table, Qchar_table_extra_slots, make_number (1));
   Vchar_script_table = Fmake_char_table (Qchar_script_table, Qnil);
index 5b637627763b79d2caafc780b8083298939531f0..c10fb37567208f8afb3152c62212826c2f49e835 100644 (file)
@@ -10814,11 +10814,6 @@ syms_of_coding (void)
   Fput (Qcoding_system_error, Qerror_message,
        build_pure_c_string ("Invalid coding system"));
 
-  /* Intern this now in case it isn't already done.
-     Setting this variable twice is harmless.
-     But don't staticpro it here--that is done in alloc.c.  */
-  Qchar_table_extra_slots = intern_c_string ("char-table-extra-slots");
-
   DEFSYM (Qtranslation_table, "translation-table");
   Fput (Qtranslation_table, Qchar_table_extra_slots, make_number (2));
   DEFSYM (Qtranslation_table_id, "translation-table-id");
index f5b37303a4a06ec4f832e189232b2f28408f0055..31eb86faed866ac5eca654380afcee73ffef4c87 100644 (file)
@@ -3486,9 +3486,9 @@ init_syntax_once (void)
   /* This has to be done here, before we call Fmake_char_table.  */
   DEFSYM (Qsyntax_table, "syntax-table");
 
-  /* Intern_C_String this now in case it isn't already done.
-     Setting this variable twice is harmless.
-     But don't staticpro it here--that is done in alloc.c.  */
+  /* This variable is DEFSYMed in alloc.c and not initialized yet, so
+     intern it here.  NOTE: you must guarantee that init_syntax_once
+     is called before all other users of this variable.  */
   Qchar_table_extra_slots = intern_c_string ("char-table-extra-slots");
 
   /* Create objects which can be shared among syntax tables.  */
index 3ff4603b72703a7af68a63e038fd2dca86aebab4..6257add2f4eea19da96720d72d746b1d64c95ac3 100644 (file)
@@ -29731,10 +29731,6 @@ cursor shapes.  */);
   DEFSYM (Qzero_width, "zero-width");
 
   DEFSYM (Qglyphless_char_display, "glyphless-char-display");
-  /* Intern this now in case it isn't already done.
-     Setting this variable twice is harmless.
-     But don't staticpro it here--that is done in alloc.c.  */
-  Qchar_table_extra_slots = intern_c_string ("char-table-extra-slots");
   Fput (Qglyphless_char_display, Qchar_table_extra_slots, make_number (1));
 
   DEFVAR_LISP ("glyphless-char-display", Vglyphless_char_display,