[Top][All Lists]

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

Re: [PATCH] Add `advice-remove-all`

From: Marcin Borkowski
Subject: Re: [PATCH] Add `advice-remove-all`
Date: Tue, 02 May 2017 07:31:23 +0200
User-agent: mu4e 0.9.19; emacs 26.0.50

On 2017-05-01, at 19:21, Stefan Monnier <address@hidden> wrote:

>>>> I recently had the need to remove all advice from a function I was playing
>>>> around with, and was surprised to find that `advice-remove-all` did not
>>>> exist.
>>> Do you have a use-case?
>>> In the case of https://emacs.stackexchange.com/questions/24657, my
>>> impression that all that was needed is an interactive `advice-remove`
>>> which provides completion (so that to remove all pieces of advice, you
>>> may have to use this command a few times, maybe, but it's rather rare).
>> Would that work when I (quite foolishly, I admit) advised something with
>> an anonymous function?
> In the absence of actual code, I can only say that it could work.
> Clearly, it would be better to write the code so that it does.

Of course.  Maybe I'll try to do that...

>         Stefan
> PS: I don't think it's foolish, BTW.

Well, it seems to me it is: showing the value of such a hook is
less-than-optimal and removing the lambda from it _might_ be tricky.


Marcin Borkowski

reply via email to

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