[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: |
Wed, 04 Sep 2019 14:30:49 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
> My use case is when I’m developing something in my config and I mess up
> something up. I might iterate on an advice function and end up with multiple
> advice elements. This is a quick, convenient way to clean it up. Is there
> a different way that would make more sense?
Maybe the advice info displayed in *Help* by the likes of `C-h o` could
let you do that interactively?
Also, I recently came across the idea to have an `advice-list` command
that shows all the advised functions, in a buffer (a bit like
`list-processes`). I'm not completely sure it's worth the trouble, but
it could occasionally be a good way to have an overview of "how bad
things got".
It wouldn't belong in the preloaded nadvice.el file, of course.
Stefan