bug-gnu-emacs
[Top][All Lists]
Advanced

[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: Eli Zaretskii
Subject: bug#32637: 27.0.50; window-size-change-functions not run from local hook
Date: Thu, 06 Sep 2018 05:35:20 +0300

> From: Juri Linkov <address@hidden>
> Cc: martin rudalics <address@hidden>,  address@hidden
> Date: Thu, 06 Sep 2018 00:56:38 +0300
> 
> > I actually don't understand why we need to support buffer-local hooks
> > in window-size-change-functions.  This hook clearly applies to the
> > entire frame, so anything buffer-local sounds inappropriate there.
> 
> A buffer-local hook is useful when a mode needs to reformat its
> buffer content on window resizing.

We have no control on what each hook could or could not do.  We give
programmers a rope, but cannot prevent them from hanging themselves
(and take down Emacs with them).

E.g., what happens if two buffers displayed on the same frame have
different hooks there, which just happen to have conflicting ideas of
what should be done when windows are resized?  How will they be able
to reconcile their conflict?

Makes very little sense to me.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]