[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 <lee@yun.yagibdah.de> 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
(de)activation.
> 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
described.
Michael.
- Re: replacing a function with another one, (continued)
- Re: replacing a function with another one, Stefan Monnier, 2014/03/12
- Re: replacing a function with another one, lee, 2014/03/12
- Re: replacing a function with another one, Jambunathan K, 2014/03/12
- How to propose an emacs patch (Re: replacing a function with another one), lee, 2014/03/15
- Re: How to propose an emacs patch (Re: replacing a function with another one), Jambunathan K, 2014/03/15
- Re: How to propose an emacs patch (Re: replacing a function with another one), lee, 2014/03/17
- Re: replacing a function with another one, lee, 2014/03/10
- Re: replacing a function with another one,
Michael Heerdegen <=
Re: replacing a function with another one, Jambunathan K, 2014/03/12