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

Documentation: Fix unreliable hooks #128

Merged
merged 1 commit into from May 5, 2021
Merged

Documentation: Fix unreliable hooks #128

merged 1 commit into from May 5, 2021

Conversation

rudolf-adamkovic
Copy link
Contributor

This PR fixes the hooks documented in README being unreliable.

Close #126

References

https://stackoverflow.com/questions/47456134/emacs-lisp-hooks-for-detecting-change-of-active-buffer

Future directions

We could perhaps modernize to Emacs 27.1 hooks documented here:

https://www.gnu.org/software/emacs/manual/html_node/elisp/Window-Hooks.html

@rudolf-adamkovic
Copy link
Contributor Author

Note: I am testing this today under full workload (mouse, keyboard, PDFs, shells, ...).

@darth10
Copy link
Collaborator

darth10 commented May 5, 2021

This can work, but there's definitely a performance impact of using post-command-hook.
I'm sure it won't slow down your workflow, but the performance hit might need to be highlighted 🤔
Although, it's just the README, so I'm not too concerned here 😄

@darth10 darth10 merged commit e08a5ed into emacsorphanage:master May 5, 2021
@darth10
Copy link
Collaborator

darth10 commented May 5, 2021

Thanks @salutis!

@rudolf-adamkovic rudolf-adamkovic deleted the fix-unreliable-hooks branch May 5, 2021 09:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

The function "my-god-mode-update-modeline" does not work reliably
2 participants