1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-24 19:03:29 +00:00

(set_internal, Fmakunbound): No error if setting

a keyword to itself.
This commit is contained in:
Karl Heuer 1998-04-11 18:04:12 +00:00
parent 7a5cc91567
commit b087d86605

View File

@ -617,7 +617,8 @@ 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] == ':'
&& keyword_symbols_constant_flag))
&& keyword_symbols_constant_flag
&& ! EQ (XSYMBOL (symbol)->value, symbol)))
return Fsignal (Qsetting_constant, Fcons (symbol, Qnil));
Fset (symbol, Qunbound);
return symbol;
@ -968,7 +969,8 @@ set_internal (symbol, newval, bindflag)
CHECK_SYMBOL (symbol, 0);
if (NILP (symbol) || EQ (symbol, Qt)
|| (XSYMBOL (symbol)->name->data[0] == ':'
&& keyword_symbols_constant_flag))
&& keyword_symbols_constant_flag
&& ! EQ (XSYMBOL (symbol)->value, symbol)))
return Fsignal (Qsetting_constant, Fcons (symbol, Qnil));
valcontents = XSYMBOL (symbol)->value;