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#32672: 27.0.50; image resize on window resizing Date: Mon, 17 Sep 2018 02:49:05 +0300 Organization: LINKOV.NET Message-ID: <87h8ip2eby.fsf@mail.linkov.net> References: <87pnxmyjgt.fsf@mail.linkov.net> <87ftyfoakb.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> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1537141689 4289 195.159.176.226 (16 Sep 2018 23:48:09 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 16 Sep 2018 23:48:09 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) Cc: 32672@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Sep 17 01:48: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 1g1glp-000121-4N for geb-bug-gnu-emacs@m.gmane.org; Mon, 17 Sep 2018 01:48:05 +0200 Original-Received: from localhost ([::1]:33046 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g1gnv-000471-IW for geb-bug-gnu-emacs@m.gmane.org; Sun, 16 Sep 2018 19:50:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59406) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g1gnp-000449-5E for bug-gnu-emacs@gnu.org; Sun, 16 Sep 2018 19:50:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g1gnl-0000w7-5X for bug-gnu-emacs@gnu.org; Sun, 16 Sep 2018 19:50:09 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:38195) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g1gnl-0000vn-0m for bug-gnu-emacs@gnu.org; Sun, 16 Sep 2018 19:50:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1g1gni-0000iV-He for bug-gnu-emacs@gnu.org; Sun, 16 Sep 2018 19:50:04 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 16 Sep 2018 23:50:02 +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.15371417622692 (code B ref 32672); Sun, 16 Sep 2018 23:50:02 +0000 Original-Received: (at 32672) by debbugs.gnu.org; 16 Sep 2018 23:49:22 +0000 Original-Received: from localhost ([127.0.0.1]:42453 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g1gn3-0000hM-Ui for submit@debbugs.gnu.org; Sun, 16 Sep 2018 19:49:22 -0400 Original-Received: from pop.dreamhost.com ([64.90.62.162]:33352 helo=pdx1-sub0-mail-a8.g.dreamhost.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g1gn2-0000hD-Kq for 32672@debbugs.gnu.org; Sun, 16 Sep 2018 19:49:21 -0400 Original-Received: from pdx1-sub0-mail-a8.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a8.g.dreamhost.com (Postfix) with ESMTP id B0C19806A8; Sun, 16 Sep 2018 16:49:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=linkov.net; bh=lgu9OsjfZodNu70FfPJbqM8zD9U=; b= mQ/yFDYbGFWYG8Sx8fUqqdZZVAU77uQMKep/YUufEEWF8cbFGA7TTl8wTlgwT3kH Re45f/HnLQ4S5EWQ/sE+VW7+r0oE1V8lezQ6Nyn7UOHzUaSgxYNzG+U80Sjoh52K ByfbG4xRVB7T3HILXsRQpW8SwJmghH1+Huz913GOR4E= Original-Received: from localhost.linkov.net (m91-129-107-237.cust.tele2.ee [91.129.107.237]) (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-a8.g.dreamhost.com (Postfix) with ESMTPSA id B5E03806A1; Sun, 16 Sep 2018 16:49:18 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a8 X-DH-BACKEND: pdx1-sub0-mail-a8 In-Reply-To: <5B9E1E0E.7070805@gmx.at> (martin rudalics's message of "Sun, 16 Sep 2018 11:10:38 +0200") 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:150360 Archived-At: >> I agree that the buffer list is more global than a window, but OTOH >> it makes sense to use buffer-local hook for a buffer to get notified >> when it comes to the top of the buffer list. So this would be a good thing >> to have, unless there is another hook that gets called when a buffer >> becomes the current buffer, or at least displayed in a window. > > I try to fix the problem you mentioned earlier, namely that > >> > it's called only when navigating away from the >> > image-mode buffer, but not when coming back to the image-mode buffer, e.g. >> > `C-x ', then resize the window, then type `C-x ', >> > it's not called. Also it's not called in another direction: >> > `C-x ', then resize the window, then type `C-x '. > > Please tell me if the attached patch works and what else should be > done. I tried but the hook still not called. Moreover, it broke something: after `C-x ' I need to type `C-x ' twice to get back to the original buffer.