* lread.c (Funintern): Error if symbol is t or nil.
This commit is contained in:
parent
4265deabcb
commit
82c602f0fe
2 changed files with 7 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
|||
2009-11-19 Richard Stallman <rms@gnu.org>
|
||||
|
||||
* lread.c (Funintern): Error if symbol is t or nil.
|
||||
|
||||
2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
|
||||
|
||||
* insdel.c (make_gap_larger): Don't make as many assumptions about the
|
||||
|
|
|
@ -3765,6 +3765,9 @@ OBARRAY defaults to the value of the variable `obarray'. */)
|
|||
if (SYMBOLP (name) && !EQ (name, tem))
|
||||
return Qnil;
|
||||
|
||||
if (EQ (tem, Qnil) || EQ (tem, Qt))
|
||||
error ("Attempt to unintern t or nil");
|
||||
|
||||
XSYMBOL (tem)->interned = SYMBOL_UNINTERNED;
|
||||
XSYMBOL (tem)->constant = 0;
|
||||
XSYMBOL (tem)->indirect_variable = 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue