* src/lread.c (init_obarray): Declare Qt and Qnil as special.
authorStefan Monnier <monnier@iro.umontreal.ca>
Tue, 15 May 2012 20:20:18 +0000 (16:20 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Tue, 15 May 2012 20:20:18 +0000 (16:20 -0400)
src/ChangeLog
src/lread.c

index 2d20f13..484df55 100644 (file)
@@ -1,3 +1,7 @@
+2012-05-15  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * lread.c (init_obarray): Declare Qt and Qnil as special.
+
 2012-05-14  Glenn Morris  <rgm@gnu.org>
 
        * nsterm.m (ns_init_paths): Fix typo ("libexec" not "lib-exec").
index 50465fd..6b657f6 100644 (file)
@@ -24,7 +24,7 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
 #include <sys/stat.h>
 #include <sys/file.h>
 #include <errno.h>
-#include <limits.h>    /* for CHAR_BIT */
+#include <limits.h>    /* For CHAR_BIT.  */
 #include <setjmp.h>
 #include "lisp.h"
 #include "intervals.h"
@@ -3990,10 +3990,12 @@ init_obarray (void)
   /* XSYMBOL (Qnil)->function = Qunbound; */
   SET_SYMBOL_VAL (XSYMBOL (Qnil), Qnil);
   XSYMBOL (Qnil)->constant = 1;
+  XSYMBOL (Qnil)->declared_special = 1;
   XSYMBOL (Qnil)->plist = Qnil;
 
   Qt = intern_c_string ("t");
   SET_SYMBOL_VAL (XSYMBOL (Qt), Qt);
+  XSYMBOL (Qnil)->declared_special = 1;
   XSYMBOL (Qt)->constant = 1;
 
   /* Qt is correct even if CANNOT_DUMP.  loadup.el will set to nil at end.  */