[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#32637: 27.0.50; window-size-change-functions not run from local hook
From: |
martin rudalics |
Subject: |
bug#32637: 27.0.50; window-size-change-functions not run from local hook |
Date: |
Sun, 09 Sep 2018 10:40:33 +0200 |
> window-size-change-functions calling code could detect if a window with
> a buffer-local hook changed its size, and not to call its hook in this
> case. This would be even better than using global hook where you can't
> implement such optimization.
Agreed.
> window-size-change-functions calling code could call it only once
> for every frame, even if the same buffer is displayed in multiple
> windows.
Agreed.
> I see that it's not called when the buffer is not displayed in any
> window on the frame - this is correct. But what I noted earlier is that
> it's not called when the buffer with the buffer-local hook is not the
> current-buffer in the selected window (but it's displayed in a
> non-selected window on the frame) - this should be fixed to call the hook
> regardless if its window is currently selected or not.
Agreed. I attach an untested and undocumented patch. Please have a
look.
martin
window.c.diff
Description: Text document
- bug#32637: 27.0.50; window-size-change-functions not run from local hook, (continued)
bug#32637: 27.0.50; window-size-change-functions not run from local hook, Juri Linkov, 2018/09/05
- bug#32637: 27.0.50; window-size-change-functions not run from local hook, martin rudalics, 2018/09/06
- bug#32637: 27.0.50; window-size-change-functions not run from local hook, Juri Linkov, 2018/09/06
- bug#32637: 27.0.50; window-size-change-functions not run from local hook, martin rudalics, 2018/09/07
- bug#32637: 27.0.50; window-size-change-functions not run from local hook, Juri Linkov, 2018/09/08
- bug#32637: 27.0.50; window-size-change-functions not run from local hook, Eli Zaretskii, 2018/09/09
- bug#32637: 27.0.50; window-size-change-functions not run from local hook,
martin rudalics <=
- bug#32637: 27.0.50; window-size-change-functions not run from local hook, Eli Zaretskii, 2018/09/09
- bug#32637: 27.0.50; window-size-change-functions not run from local hook, martin rudalics, 2018/09/10
bug#32637: 27.0.50; window-size-change-functions not run from local hook, Juri Linkov, 2018/09/09
bug#32637: 27.0.50; window-size-change-functions not run from local hook, martin rudalics, 2018/09/10