From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#32637: 27.0.50; window-size-change-functions not run from local hook Date: Wed, 05 Sep 2018 00:03:30 +0300 Organization: LINKOV.NET Message-ID: <87musx9dr1.fsf@mail.linkov.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1536096248 28283 195.159.176.226 (4 Sep 2018 21:24:08 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 4 Sep 2018 21:24:08 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) To: 32637@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Sep 04 23:24: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 1fxInr-0007DB-UW for geb-bug-gnu-emacs@m.gmane.org; Tue, 04 Sep 2018 23:24:04 +0200 Original-Received: from localhost ([::1]:52695 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fxIpx-00005l-LC for geb-bug-gnu-emacs@m.gmane.org; Tue, 04 Sep 2018 17:26:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56499) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fxIpp-00005Z-Sb for bug-gnu-emacs@gnu.org; Tue, 04 Sep 2018 17:26:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fxIpm-0007dS-MZ for bug-gnu-emacs@gnu.org; Tue, 04 Sep 2018 17:26:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:41041) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fxIpm-0007dD-E7 for bug-gnu-emacs@gnu.org; Tue, 04 Sep 2018 17:26:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fxIpm-0003ri-82 for bug-gnu-emacs@gnu.org; Tue, 04 Sep 2018 17:26:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 04 Sep 2018 21:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 32637 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.153609632514807 (code B ref -1); Tue, 04 Sep 2018 21:26:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 4 Sep 2018 21:25:25 +0000 Original-Received: from localhost ([127.0.0.1]:46059 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fxIpB-0003ql-7J for submit@debbugs.gnu.org; Tue, 04 Sep 2018 17:25:25 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:35122) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fxIpA-0003qS-0D for submit@debbugs.gnu.org; Tue, 04 Sep 2018 17:25:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fxIp4-0006yc-2q for submit@debbugs.gnu.org; Tue, 04 Sep 2018 17:25:18 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:49842) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fxIp3-0006yS-SU for submit@debbugs.gnu.org; Tue, 04 Sep 2018 17:25:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56096) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fxIp3-0008Q4-2a for bug-gnu-emacs@gnu.org; Tue, 04 Sep 2018 17:25:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fxIoz-0006vo-Rg for bug-gnu-emacs@gnu.org; Tue, 04 Sep 2018 17:25:16 -0400 Original-Received: from pop.dreamhost.com ([64.90.62.162]:42212 helo=pdx1-sub0-mail-a1.g.dreamhost.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fxIoz-0006u5-Fi for bug-gnu-emacs@gnu.org; Tue, 04 Sep 2018 17:25:13 -0400 Original-Received: from pdx1-sub0-mail-a1.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a1.g.dreamhost.com (Postfix) with ESMTP id F0A8F7ED8A for ; Tue, 4 Sep 2018 14:25:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to :subject:date:message-id:mime-version:content-type :content-transfer-encoding; s=linkov.net; bh=ACqZqFDNMCAg44Nxle9 oJylNEE0=; b=eGbTURu1oZOOiZ1jz1akda+NGxAvMeKJ5Ydm3nGk/0pX2c1d+2D SZjoVnGE9mzdSBLGp6W6thoKf0t66VGQUmTtYlxmXg1o32j1jesAbripicLoRvxt QmOSoWJMs9nkxNXt2G9XJzZqxDaOTakbRnL37JuQCXk2mO07bTQyKsYk= Original-Received: from localhost.linkov.net (m91-129-101-104.cust.tele2.ee [91.129.101.104]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a1.g.dreamhost.com (Postfix) with ESMTPSA id E5AC37EAE7 for ; Tue, 4 Sep 2018 14:25:09 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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:150019 Archived-At: 0. In emacs -Q open two windows: one with the *scratch* buffer, another window with the *Messages* buffer with e.g. =E2=80=98C-h e=E2=80=99 (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. =E2=80=98C-x {=E2=80=99 (shrink-window-horizo= ntally) Check the message with the frame name in *Messages*, fine. 3. Select the window with *Messages* with =E2=80=98C-x o=E2=80=99 (other-= window), and resize again =E2=80=98C-x }=E2=80=99 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.