From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Carlos Pita Newsgroups: gmane.emacs.bugs Subject: bug#33631: 26.1.90; Image mode should keep scale on auto-revert Date: Wed, 2 Jan 2019 21:29:19 -0300 Message-ID: References: <87mupj6gwt.fsf@gmail.com> <87r2e06u76.fsf@mail.linkov.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="000000000000411a2d057e82db06" X-Trace: blaine.gmane.org 1546475302 19519 195.159.176.226 (3 Jan 2019 00:28:22 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 3 Jan 2019 00:28:22 +0000 (UTC) Cc: 33631@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jan 03 01:28:18 2019 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 1geqru-0004u5-W4 for geb-bug-gnu-emacs@m.gmane.org; Thu, 03 Jan 2019 01:28:15 +0100 Original-Received: from localhost ([127.0.0.1]:48173 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gequ1-0007h3-RC for geb-bug-gnu-emacs@m.gmane.org; Wed, 02 Jan 2019 19:30:25 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:38558) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1geqtp-0007gE-UF for bug-gnu-emacs@gnu.org; Wed, 02 Jan 2019 19:30:17 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1geqti-00005w-2C for bug-gnu-emacs@gnu.org; Wed, 02 Jan 2019 19:30:11 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:54704) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1geqte-0008SP-Gm for bug-gnu-emacs@gnu.org; Wed, 02 Jan 2019 19:30:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1geqte-00021E-7a for bug-gnu-emacs@gnu.org; Wed, 02 Jan 2019 19:30:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Carlos Pita Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 03 Jan 2019 00:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33631 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 33631-submit@debbugs.gnu.org id=B33631.15464753797710 (code B ref 33631); Thu, 03 Jan 2019 00:30:02 +0000 Original-Received: (at 33631) by debbugs.gnu.org; 3 Jan 2019 00:29:39 +0000 Original-Received: from localhost ([127.0.0.1]:45070 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1geqtH-00020I-8z for submit@debbugs.gnu.org; Wed, 02 Jan 2019 19:29:39 -0500 Original-Received: from mail-yb1-f175.google.com ([209.85.219.175]:44721) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1geqtG-000205-HZ for 33631@debbugs.gnu.org; Wed, 02 Jan 2019 19:29:38 -0500 Original-Received: by mail-yb1-f175.google.com with SMTP id e1so8307105ybn.11 for <33631@debbugs.gnu.org>; Wed, 02 Jan 2019 16:29:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=KNNnPeH2/AzcfFXFc8P8qOrCxqEZF2q3OK4C/Lh7SxU=; b=CV9Cibd37/JpZ/72fVd5i6Mb0VwlF4/WK9rRsa/LCC5Mp5QfFmSlOtvgHVkEoZEF+P 3kXCtkdgKhLbkXpO7dphvXOVWRepfWC0jEDCwjFX1SDwEvJE38pxXpod41/SBqY9dOai KRQFMVzaKD2FVBTh1IabsgHtmcv2t1KrlGEnjbuSt/+VxsHsmCAcIc75W1TJenVX6MmS 6H8ABOANx2zvmhbQpkmjnTY2mtn3Zjk0cGXTXVn4w2DPtRF26Tuv0iiXQSCRZivION1a m0CYdunUooOz0ZIP2DBTo9SL4X4BepscZzSOYBZnbn6aCmY6Ny9nTdAuyDjZamNNtaKu gsxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=KNNnPeH2/AzcfFXFc8P8qOrCxqEZF2q3OK4C/Lh7SxU=; b=VlEGiM5mCSVBx5cKwLypkmL86haHjtQO6Mm5gUFwQrnW3XcbUj/sO2sebFbLII/Ykr Q6Jp+ist0rUMllu7YiO3HPPImQDieabUztr2z4v2jRXhI8/gWHbYoHY3XRpysomDTRyE kscJMt05LeKD8J/ZF5cXovE/0xhKLvyoJ5zVzb8YkAyQhXp1c6+g3eLwyVpexwsAi3j4 yuqr+sfSH1yP8TzV++BUR4GuOshz3O7EgnfgQlXu3LZoUnY3AFZL5wUlVmmpw6MNltWt tVGmqBLPQqorI2ARYBhKWGtg3gv65EJLRu1zgbbcZq/Aexq5IOg7TFY9G1Y6e9Kxe9o1 oFLg== X-Gm-Message-State: AJcUukemALUR0FIoC3ARUayJ6euh9n9G1ENx0tSzeVBy3mcrv5X/8vfx TmbW5WTCJDx3KQSpJadBYTNgP3imsKThmBEMvSouT4VC X-Google-Smtp-Source: ALg8bN5rJUJvvI07mul7lezmorvPD6bAG3kg9aajBzNja++TWSgUGLJ1aEgjfdTP3K5AKZvk0spu2PlcBYPA6V0gxH4= X-Received: by 2002:a5b:ec9:: with SMTP id a9mr26504810ybs.446.1546475372860; Wed, 02 Jan 2019 16:29:32 -0800 (PST) In-Reply-To: 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:154098 Archived-At: --000000000000411a2d057e82db06 Content-Type: text/plain; charset="UTF-8" Here is a patch. image-transform-properties was not working on the window of the current buffer, so I added a call to get-window-buffer. In image-toggle-display-image (called from the auto-revert hook) this was already being done, but the call to current-buffer was redundant since it's the default, so I removed it. There are many other calls to window-inside-pixel-edges around there but they don't seem to be evaluated during auto-revert. Regards -- Carlos --000000000000411a2d057e82db06 Content-Type: text/x-patch; charset="US-ASCII"; name="0001-Fix-auto-revert-resizing-33631.patch" Content-Disposition: attachment; filename="0001-Fix-auto-revert-resizing-33631.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_jqfvh8t20 RnJvbSBlNDA2N2I3MWI2MGMyNTA3Y2UzMzdiNjFlMTI4MmMxZGM4ZTZlYmNjIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBtZW1lcGxleCA8Y2FybG9zam9zZXBpdGFAZ21haWwuY29tPgpE YXRlOiBXZWQsIDIgSmFuIDIwMTkgMjE6MjU6MjcgLTAzMDAKU3ViamVjdDogW1BBVENIXSBGaXgg YXV0by1yZXZlcnQgcmVzaXppbmcgIzMzNjMxCgotLS0KIGxpc3AvaW1hZ2UtbW9kZS5lbCB8IDEw ICsrKystLS0tLS0KIDEgZmlsZSBjaGFuZ2VkLCA0IGluc2VydGlvbnMoKyksIDYgZGVsZXRpb25z KC0pCgpkaWZmIC0tZ2l0IGEvbGlzcC9pbWFnZS1tb2RlL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ZWwtZWRnZXMgKGdldC1idWZmZXIt d2luZG93KSkpCiAJICAgKHJlc2l6ZWQKIAkgICAgKGNvbmQKIAkgICAgICgobnVtYmVycCBpbWFn ZS10cmFuc2Zvcm0tcmVzaXplKQpAQCAtMTE3MCwxMyArMTE3MCwxMSBAQCBpbWFnZS10cmFuc2Zv cm0tcHJvcGVydGllcwogCSAgICAgKChlcSBpbWFnZS10cmFuc2Zvcm0tcmVzaXplICdmaXQtd2lk dGgpCiAJICAgICAgKGltYWdlLXRyYW5zZm9ybS1maXQtd2lkdGgKIAkgICAgICAgKGNhciBzaXpl KSAoY2RyIHNpemUpCi0JICAgICAgICgtIChudGggMiAod2luZG93LWluc2lkZS1waXhlbC1lZGdl cykpCi0JCSAgKG50aCAwICh3aW5kb3ctaW5zaWRlLXBpeGVsLWVkZ2VzKSkpKSkKKwkgICAgICAg KC0gKG50aCAyIGVkZ2VzKSAobnRoIDAgZWRnZXMpKSkpCiAJICAgICAoKGVxIGltYWdlLXRyYW5z Zm9ybS1yZXNpemUgJ2ZpdC1oZWlnaHQpCiAJICAgICAgKGxldCAoKHJlcyAoaW1hZ2UtdHJhbnNm b3JtLWZpdC13aWR0aAogCQkJICAoY2RyIHNpemUpIChjYXIgc2l6ZSkKLQkJCSAgKC0gKG50aCAz ICh3aW5kb3ctaW5zaWRlLXBpeGVsLWVkZ2VzKSkKLQkJCSAgICAgKG50aCAxICh3aW5kb3ctaW5z aWRlLXBpeGVsLWVkZ2VzKSkpKSkpCisJCQkgICgtIChudGggMyBlZGdlcykgKG50aCAxIGVkZ2Vz KSkpKSkKIAkJKGNvbnMgKGNkciByZXMpIChjYXIgcmVzKSkpKSkpKQogICAgICAgYCgsQCh3aGVu IChjYXIgcmVzaXplZCkKIAkgICAgKGxpc3QgOndpZHRoIChjYXIgcmVzaXplZCkpKQotLSAKMi4x OS4yCgo= --000000000000411a2d057e82db06--