Commit e3fa7dfc authored by Jim Blandy's avatar Jim Blandy
Browse files

* data.c (Ffset): Refuse to set the function value of t or nil.

parent 8b0c35d9
......@@ -518,6 +518,9 @@ DEFUN ("fset", Ffset, Sfset, 2, 2, 0,
register Lisp_Object sym, newdef;
{
CHECK_SYMBOL (sym, 0);
if (NILP (sym) || EQ (sym, Qt))
return Fsignal (Qsetting_constant, Fcons (sym, Qnil));
if (!NILP (Vautoload_queue) && !EQ (XSYMBOL (sym)->function, Qunbound))
Vautoload_queue = Fcons (Fcons (sym, XSYMBOL (sym)->function),
Vautoload_queue);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment