From: Stefan Monnier Date: Tue, 15 May 2012 20:20:18 +0000 (-0400) Subject: * src/lread.c (init_obarray): Declare Qt and Qnil as special. X-Git-Tag: emacs-24.2.90~471^2~68 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=9660f5fc84e148f54f704a86710c0e9287a1769c;p=emacs.git * src/lread.c (init_obarray): Declare Qt and Qnil as special. --- diff --git a/src/ChangeLog b/src/ChangeLog index 2d20f13dced..484df557e6e 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2012-05-15 Stefan Monnier + + * lread.c (init_obarray): Declare Qt and Qnil as special. + 2012-05-14 Glenn Morris * nsterm.m (ns_init_paths): Fix typo ("libexec" not "lib-exec"). diff --git a/src/lread.c b/src/lread.c index 50465fd01e8..6b657f61ed0 100644 --- a/src/lread.c +++ b/src/lread.c @@ -24,7 +24,7 @@ along with GNU Emacs. If not, see . */ #include #include #include -#include /* for CHAR_BIT */ +#include /* For CHAR_BIT. */ #include #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. */