Use window-buffer-change-function hook #235
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I used more naively this hook for +2 years with in mind to contribute back sometime. Unfortunately as time passed, I lost the memory of a reproducible test case. I think I implemented this after seeing #115 (Git gutter annotations disappearing).
As I finally took the time to present you the hook, I realized that it would mean to obsolete a bunch of functions and variables in the library such as:
I also removed the variable
git-gutter-mode
as it is generated by the minor mode and while testing my changes, its presence caused a small bug of the mode not activating when it should have.