Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An iteration command for traversing advices of a function #113

Open
Luis-Henriquez-Perez opened this issue Dec 10, 2021 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@Luis-Henriquez-Perez
Copy link
Contributor

As far as I know, in emacs the way you need to traverse through advices of a function is via advice-mapc. I find it slightly unpleasant to do this. I know loopy as well as cl-loop have iteration commands/clauses for making some iterations convenient (such as numbers). Maybe this is a good candidate for such a command.

(iter (advice-list (advice props) function)
      (when (= advice fn)
	(do-something)))
@okamsn okamsn added the enhancement New feature or request label Dec 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants