From 899cb8f0f3e3204908fa5d89b381f8a1bf572e5b Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Thu, 7 May 1998 20:47:53 +0000 Subject: [PATCH] (set_internal): Properly compare lisp objects. (Fmakunbound): Likewise. --- src/data.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/data.c b/src/data.c index eb1cbf77bbc..eb04f5a39aa 100644 --- a/src/data.c +++ b/src/data.c @@ -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; -- 2.39.2