Subject: bug#14317: 24.3.50; nadvice.el: named advices not upgradable

From: Michael Heerdegen <[email-masked]>
Date: Fri, 03 May 2013 03:20:42 +0200

Michael Heerdegen <[email-masked]> writes:

> but as a user, I would suspect something like
>
> (defun advice--add-function (where ref function props)
>   (when (advice--member-p function (cdr (assq 'name props))
>                           (gv-deref ref))
>     (advice--remove-function .........))
>   (setf (gv-deref ref)
>         (advice--make where function (gv-deref ref) props)))
>
> i.e., replacing the old code, instead of doing nothing.

We should probably distinguish between named functions and
named advice.  I mean, it's probably stupid to remove and add
back an fboundp symbol - but you get the idea...

Regards,

Michael.