mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-08 20:50:52 -08:00
(set_internal): Properly compare lisp objects.
(Fmakunbound): Likewise.
This commit is contained in:
parent
ced7b4a427
commit
899cb8f0f3
1 changed files with 2 additions and 2 deletions
|
|
@ -618,7 +618,7 @@ DEFUN ("makunbound", Fmakunbound, Smakunbound, 1, 1, 0, "Make SYMBOL's value be
|
|||
CHECK_SYMBOL (symbol, 0);
|
||||
if (NILP (symbol) || EQ (symbol, Qt)
|
||||
|| (XSYMBOL (symbol)->name->data[0] == ':'
|
||||
&& XSYMBOL (symbol)->obarray == initial_obarray
|
||||
&& EQ (XSYMBOL (symbol)->obarray, initial_obarray)
|
||||
&& keyword_symbols_constant_flag))
|
||||
return Fsignal (Qsetting_constant, Fcons (symbol, Qnil));
|
||||
Fset (symbol, Qunbound);
|
||||
|
|
@ -970,7 +970,7 @@ set_internal (symbol, newval, bindflag)
|
|||
CHECK_SYMBOL (symbol, 0);
|
||||
if (NILP (symbol) || EQ (symbol, Qt)
|
||||
|| (XSYMBOL (symbol)->name->data[0] == ':'
|
||||
&& XSYMBOL (symbol)->obarray == initial_obarray
|
||||
&& EQ (XSYMBOL (symbol)->obarray, initial_obarray)
|
||||
&& keyword_symbols_constant_flag && ! EQ (newval, symbol)))
|
||||
return Fsignal (Qsetting_constant, Fcons (symbol, Qnil));
|
||||
valcontents = XSYMBOL (symbol)->value;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue