unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#32637: 27.0.50; window-size-change-functions not run from local hook
@ 2018-09-04 21:03 Juri Linkov
  2018-09-05  7:47 ` martin rudalics
  0 siblings, 1 reply; 17+ messages in thread
From: Juri Linkov @ 2018-09-04 21:03 UTC (permalink / raw)
  To: 32637

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.





^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2018-09-10  8:29 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-04 21:03 bug#32637: 27.0.50; window-size-change-functions not run from local hook Juri Linkov
2018-09-05  7:47 ` martin rudalics
2018-09-05 15:26   ` Eli Zaretskii
2018-09-05 21:56     ` Juri Linkov
2018-09-06  2:35       ` Eli Zaretskii
2018-09-06 22:17         ` Juri Linkov
2018-09-05 21:54   ` Juri Linkov
2018-09-06  7:05     ` martin rudalics
2018-09-06 22:06       ` Juri Linkov
2018-09-07  7:31         ` martin rudalics
2018-09-08 23:56           ` Juri Linkov
2018-09-09  6:03             ` Eli Zaretskii
2018-09-09  8:40             ` martin rudalics
2018-09-09 15:59               ` Eli Zaretskii
2018-09-10  8:29                 ` martin rudalics
2018-09-09 16:17               ` Juri Linkov
2018-09-10  8:29                 ` martin rudalics

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).