-
-
Notifications
You must be signed in to change notification settings - Fork 426
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
Hooks enhancements (list all hooks) #383
Comments
If I'm not mistaken, the all the above is now merged on master except for the ability to list all hooks. |
You are correct, ability to list all hooks is missing. However you can easily find the hooks in slime with completion by typing "next:" TAB and then searching for "hook" in the completions. |
Closing this. I'm pretty sure our To implement hook listing as a command/function, one'd need to go through all the slots and variables and find those that are |
There is another way: in the nhooks library we can tweak the initializer to references all the hooks, which would then be reported by a But this does not report the bound symbols, if any. Do we want both approaches? This is a fairly general problem in CL, others must have dealt with it before, nah? Issue opened at atlas-engineer/nhooks#14. |
Huh, registering hook instances can be a good way there, because then we can check the symbols we find for being bound to these instance! |
So hooks open up for many many cool stuff. Here's a meta issue on what can be improved to work with them.
(load-hook (active-buffer *interface*))
doesn't add it to the default list: an interface might help (with the double benefit that the user doesn't directly touch the internal data structures: its ini file is more resilient to future changes).(add-to-default-list <hook> 'remote-interface 'buffer-make-hook)
, which the user cannot guess (it must be documented). Probably a wrapper can make it easier.The text was updated successfully, but these errors were encountered: