I'm writing a simple minor mode (for personal use) which dynamically sets fringes according to current window width. I added a dedicated function to those hooks:
window-configuration-change-hook
window-setup-hook
switch-window-finish-hook
kill-buffer-hook
as well as to pre-redisplay-function
and it works quite fine.
But there are external packages or in-built Emacs functions which pop up a buffer in other window (e.g. *help* buffers or magit diffs buffer) with focus remaining in current buffer and those buffers are not displayed properly (meaning: according to my intention) unless I switch to them and they gain a "selected window" status.
Is there a hook which controls redisplaying those "automatic" guests in the frame or, even better, a hook which would loop over all active windows after any change of windows configuration?
window-configuration-change-hook
not get called for the frame? You could do awalk-windows
in there.(lambda () (walk-windows 'my-func)
to the hook. Now it works just fine.