[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: |
Juri Linkov |
Subject: |
bug#32637: 27.0.50; window-size-change-functions not run from local hook |
Date: |
Wed, 05 Sep 2018 00:03:30 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) |
0. In emacs -Q open two windows: one with the *scratch* buffer,
another window with the *Messages* buffer with e.g. ‘C-h e’
(view-echo-area-messages).
1. In *scratch* eval:
(add-hook 'window-size-change-functions
(lambda (frame) (message "%S" frame))
nil t)
2. Resize windows with e.g. ‘C-x {’ (shrink-window-horizontally)
Check the message with the frame name in *Messages*, fine.
3. Select the window with *Messages* with ‘C-x o’ (other-window),
and resize again ‘C-x }’
No message in *Messages*, because the hook was not called,
but actually the size of the *scratch* buffer was changed.
window-size-change-functions needs to notify the buffer
that requested such notifications via this hook.