Subject: Re: bug#14202: 24.3.50; add-function doesn't check properly for existing advices with same name prop
From: Stefan Monnier <[email-masked]>
To: Michael Heerdegen <[email-masked]>
Cc: [email-masked]
Date: Mon, 15 Apr 2013 11:07:26 -0400
List-Id: <debbugs-submit.debbugs.gnu.org>

> Looks like `advice--member-p' is not DTRT:
> When adding the advice the second time, this test
>   (equal function (cdr (assq 'name (advice--props definition))))
> seems to be "responsible".  But it returns nil, because `function' is
> bound to a byte code function, while

Duh!  Indeed that code was confused.  Should be fixed now.
Thank you,

        Stefan