Commit 5e84269a authored by Roland McGrath's avatar Roland McGrath

(Ffset): Don't call Fget unless SYM's plist is consp.

parent 60f312e2
......@@ -556,7 +556,7 @@ DEFUN ("fset", Ffset, Sfset, 2, 2, 0,
XSYMBOL (sym)->function = newdef;
/* Handle automatic advice activation */
if (!NILP (Fget (sym, Qadvice_info)))
if (CONSP (XSYMBOL (sym)->plist) && !NILP (Fget (sym, Qadvice_info)))
call2 (Qactivate_advice, sym, Fbyte_code_function_p (newdef));
newdef = XSYMBOL (sym)->function;
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