From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#32637: 27.0.50; window-size-change-functions not run from local hook Date: Thu, 06 Sep 2018 05:35:20 +0300 Message-ID: <837ejzxsif.fsf@gnu.org> References: <87musx9dr1.fsf@mail.linkov.net> <5B8F8A0C.1030908@gmx.at> <83k1o0x8w0.fsf@gnu.org> <87a7ov1ucp.fsf@mail.linkov.net> NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1536201248 17008 195.159.176.226 (6 Sep 2018 02:34:08 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 6 Sep 2018 02:34:08 +0000 (UTC) Cc: 32637@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Sep 06 04:34:04 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fxk7Q-0004GE-BW for geb-bug-gnu-emacs@m.gmane.org; Thu, 06 Sep 2018 04:34:04 +0200 Original-Received: from localhost ([::1]:59048 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fxk9W-0005Ss-DH for geb-bug-gnu-emacs@m.gmane.org; Wed, 05 Sep 2018 22:36:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33086) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fxk9Q-0005Rn-Uj for bug-gnu-emacs@gnu.org; Wed, 05 Sep 2018 22:36:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fxk9K-0008BZ-V7 for bug-gnu-emacs@gnu.org; Wed, 05 Sep 2018 22:36:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:42538) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fxk9K-0008AU-A1 for bug-gnu-emacs@gnu.org; Wed, 05 Sep 2018 22:36:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fxk9K-00027D-6y for bug-gnu-emacs@gnu.org; Wed, 05 Sep 2018 22:36:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 06 Sep 2018 02:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 32637 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 32637-submit@debbugs.gnu.org id=B32637.15362013328091 (code B ref 32637); Thu, 06 Sep 2018 02:36:02 +0000 Original-Received: (at 32637) by debbugs.gnu.org; 6 Sep 2018 02:35:32 +0000 Original-Received: from localhost ([127.0.0.1]:47556 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fxk8q-00026R-Le for submit@debbugs.gnu.org; Wed, 05 Sep 2018 22:35:32 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:39978) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fxk8p-00026F-0o for 32637@debbugs.gnu.org; Wed, 05 Sep 2018 22:35:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fxk8g-0006tN-Ca for 32637@debbugs.gnu.org; Wed, 05 Sep 2018 22:35:25 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:59130) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fxk8g-0006t7-3v; Wed, 05 Sep 2018 22:35:22 -0400 Original-Received: from [176.228.60.248] (port=4070 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fxk8f-0005am-N5; Wed, 05 Sep 2018 22:35:22 -0400 In-reply-to: <87a7ov1ucp.fsf@mail.linkov.net> (message from Juri Linkov on Thu, 06 Sep 2018 00:56:38 +0300) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:150068 Archived-At: > From: Juri Linkov > Cc: martin rudalics , 32637@debbugs.gnu.org > 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.