mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-08 04:30:45 -08:00
(Ffset): Don't call Fget unless SYM's plist is consp.
This commit is contained in:
parent
60f312e2fc
commit
5e84269afe
1 changed files with 1 additions and 1 deletions
|
|
@ -556,7 +556,7 @@ DEFUN ("fset", Ffset, Sfset, 2, 2, 0,
|
|||
Vautoload_queue);
|
||||
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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue