Skip to content

Commit

Permalink
(set_internal, Fmakunbound): No error if setting
Browse files Browse the repository at this point in the history
a keyword to itself.
  • Loading branch information
Karl Heuer committed Apr 11, 1998
1 parent 3761497 commit 263fe7b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/data.c
Expand Up @@ -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;
Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit 263fe7b

Please sign in to comment.