window-buffer-change-functions & window-size-change-functions

Joost Kremers <[email protected]> Tue, 30 Jun 2026 14:16:26 +0200
Newsgroups gmane.emacs.help
Message-ID <[email protected]>
Hi all,

The docs state that `window-size-change-functions` "is run when a 'window
size change' has been detected which means that a window was created,
assigned another buffer, or changed its total size or that of its text
area". Is there a way to separate out these various cases?

I'm looking specifically for a way to distinguish the case where a new
buffer is displayed in a window from the case where a window size is
changed. Going by the names, `window-size-change-functions` and
`window-buffer-change-functions` seem to allow me to do that, but
apparently the former is also called upon buffer-change.

TIA


-- 
Joost Kremers
Life has its moments