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#32672: 27.0.50; image resize on window resizing Date: Mon, 24 Sep 2018 22:31:15 +0300 Message-ID: <83lg7qae0s.fsf@gnu.org> References: <87pnxmyjgt.fsf@mail.linkov.net> <5B98B33D.7000605@gmx.at> <871s9ycnjl.fsf@mail.linkov.net> <5B9A15DA.5000403@gmx.at> <87efdxnfww.fsf@mail.linkov.net> <5B9B7253.5060808@gmx.at> <87pnxexr2m.fsf@mail.linkov.net> <5B9E1E0E.7070805@gmx.at> <87h8ip2eby.fsf@mail.linkov.net> <5B9F4DBD.5020009@gmx.at> <877ejjzr9s.fsf@mail.linkov.net> <5BA20763.8070305@gmx.at> <875zz1t6y1.fsf@mail.linkov.net> <5BA34D7E.4030509@gmx.at> <87fty3sp6a.fsf@mail.linkov.net> <5BA490E5.5090506@gmx.at> <87zhw9xjpx.fsf@mail.linkov.net> <5BA74E3D.5030903@gmx.at> <87va6wt79n.fsf@mail.linkov.net> <5BA89ED5.4050207@gmx.at> <83in2vb8dw.fsf@gnu.org> <87a7o6ewxw.fsf@mail.linkov.net> NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1537817889 19543 195.159.176.226 (24 Sep 2018 19:38:09 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 24 Sep 2018 19:38:09 +0000 (UTC) Cc: 32672@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Sep 24 21:38:05 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 1g4WgH-00050M-Gk for geb-bug-gnu-emacs@m.gmane.org; Mon, 24 Sep 2018 21:38:05 +0200 Original-Received: from localhost ([::1]:46683 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g4WiN-0005bT-Uo for geb-bug-gnu-emacs@m.gmane.org; Mon, 24 Sep 2018 15:40:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41271) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g4Wi8-0005Xu-Ai for bug-gnu-emacs@gnu.org; Mon, 24 Sep 2018 15:40:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g4WaQ-0004Fu-AB for bug-gnu-emacs@gnu.org; Mon, 24 Sep 2018 15:32:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:48115) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g4WaQ-0004Fq-5i for bug-gnu-emacs@gnu.org; Mon, 24 Sep 2018 15:32:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1g4WaP-0005ym-Rx for bug-gnu-emacs@gnu.org; Mon, 24 Sep 2018 15:32:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 24 Sep 2018 19:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 32672 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 32672-submit@debbugs.gnu.org id=B32672.153781749922950 (code B ref 32672); Mon, 24 Sep 2018 19:32:01 +0000 Original-Received: (at 32672) by debbugs.gnu.org; 24 Sep 2018 19:31:39 +0000 Original-Received: from localhost ([127.0.0.1]:52373 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g4Wa3-0005y6-3B for submit@debbugs.gnu.org; Mon, 24 Sep 2018 15:31:39 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:55822) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g4Wa1-0005xu-FU for 32672@debbugs.gnu.org; Mon, 24 Sep 2018 15:31:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g4WZt-0003sR-9d for 32672@debbugs.gnu.org; Mon, 24 Sep 2018 15:31:32 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:41265) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g4WZt-0003sL-4q; Mon, 24 Sep 2018 15:31:29 -0400 Original-Received: from [176.228.60.248] (port=2523 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1g4WZr-0003sv-Va; Mon, 24 Sep 2018 15:31:29 -0400 In-reply-to: <87a7o6ewxw.fsf@mail.linkov.net> (message from Juri Linkov on Mon, 24 Sep 2018 21:38:59 +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:150620 Archived-At: > From: Juri Linkov > Cc: martin rudalics , 32672@debbugs.gnu.org > Date: Mon, 24 Sep 2018 21:38:59 +0300 > > I think window hook calls should be consistent at least with own inner logic, > e.g. as the semantics of the window-size-change-functions hook name suggests > it should be called when the window size is not the same as was before, > window-configuration-change-hook is called when the result of window-state-get > is not the same as it was before, etc. My point is that these expectations are hard to meet with the current design. Most of those hooks are called from the display engine, which normally has no idea what was changed since the last redisplay, in terms of window dimensions and buffers displayed in each window. You must keep in mind that Emacs has the MVC (model-view-controller) design, where the View part -- redisplay -- basically just reflects on the glass what it finds in the various Lisp data structures at the moment when redisplay is invoked. It doesn't track changes in windows, frames, and buffers. But the users of those hooks want to be invoked when some such change happened. And that is the crux of the problem.