[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: replacing a function with another one

From: Michael Heerdegen
Subject: Re: replacing a function with another one
Date: Tue, 11 Mar 2014 00:31:25 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

lee <address@hidden> writes:

> What are the equivalents of ad-deactivate and ad-activate with
> advice-add?  I only found advice-add and advice-remove.

Yes, you can use these.  AFAIK, there is no direct replacement for

> Is it possible that an advice adds and removes itself instead of
> activating and deactivating itself?

If you have named them so that you can refer to them, yes, that would
work.  Although it's much cleaner to use auxiliary variables as Stefan


reply via email to

[Prev in Thread] Current Thread [Next in Thread]