[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Add `advice-remove-all`
From: |
Stefan Monnier |
Subject: |
Re: [PATCH] Add `advice-remove-all` |
Date: |
Mon, 01 May 2017 13:21:36 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) |
>>> 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.
Stefan
PS: I don't think it's foolish, BTW.