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, 05 Dec 2018 14:07:46 -0300 Message-ID: <87mupj6gwt.fsf@gmail.com> 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 1544030245 11515 195.159.176.226 (5 Dec 2018 17:17:25 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 5 Dec 2018 17:17:25 +0000 (UTC) To: 33631@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Dec 05 18:17:21 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 1gUanX-0002sW-Rb for geb-bug-gnu-emacs@m.gmane.org; Wed, 05 Dec 2018 18:17:20 +0100 Original-Received: from localhost ([::1]:35812 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gUape-00034d-Is for geb-bug-gnu-emacs@m.gmane.org; Wed, 05 Dec 2018 12:19:30 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40875) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gUamU-0007yo-1S for bug-gnu-emacs@gnu.org; Wed, 05 Dec 2018 12:16:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gUamK-0007Cp-IR for bug-gnu-emacs@gnu.org; Wed, 05 Dec 2018 12:16:11 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:58442) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gUamI-0006ym-CA for bug-gnu-emacs@gnu.org; Wed, 05 Dec 2018 12:16:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gUamI-0001xZ-4t for bug-gnu-emacs@gnu.org; Wed, 05 Dec 2018 12:16: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: Wed, 05 Dec 2018 17:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 33631 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.15440301027459 (code B ref -1); Wed, 05 Dec 2018 17:16:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 5 Dec 2018 17:15:02 +0000 Original-Received: from localhost ([127.0.0.1]:34467 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gUalK-0001wE-7l for submit@debbugs.gnu.org; Wed, 05 Dec 2018 12:15:02 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:58673) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gUalH-0001vR-QA for submit@debbugs.gnu.org; Wed, 05 Dec 2018 12:15:00 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gUalA-0002zX-Ma for submit@debbugs.gnu.org; Wed, 05 Dec 2018 12:14:54 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:49008) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gUal9-0002wj-5k for submit@debbugs.gnu.org; Wed, 05 Dec 2018 12:14:52 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39474) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gUal4-0006Ws-4U for bug-gnu-emacs@gnu.org; Wed, 05 Dec 2018 12:14:51 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gUaeS-0008R9-39 for bug-gnu-emacs@gnu.org; Wed, 05 Dec 2018 12:07:59 -0500 Original-Received: from mail-qt1-x835.google.com ([2607:f8b0:4864:20::835]:41860) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gUaeR-0008Qf-Tn for bug-gnu-emacs@gnu.org; Wed, 05 Dec 2018 12:07:56 -0500 Original-Received: by mail-qt1-x835.google.com with SMTP id d18so23066482qto.8 for ; Wed, 05 Dec 2018 09:07:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=EgovzPSK/mmfLnfkCDWGoVOZtYpLPDuQZRQKsajmS1I=; b=CDQLCY9XZkJ86j/u3zWSTIuFcUuHk0lt1GEtUeNi98TieIQIolb30orabJtyZxiofq llz7Kxxi8kmefxc62LDbH3/JpSRLZdiG7EGtJFmDbXusdSxJrnqAVY/1SkNhG3LNPm8q D55KcStzfC+NwEKIm8qDU56AETuk25qKjcAjLU9aEIuldJ5yCciWMBSaqsHLaGCxy5BM XRRbcGQbNjIQvtqMSTFlDmOtMFH7rahtnnNBwSc5wPMJCk6Onz5qFEG047mhAy+NYKrB K2n6T6pSV+2qt7lG2gxb7UCHXL9nZ92bUlwQNA8c1jQhYteqNpt5SZ/3H86lgFZamkVl edDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=EgovzPSK/mmfLnfkCDWGoVOZtYpLPDuQZRQKsajmS1I=; b=NWWEUCmC9YthG6/rEE4eERHrG9ti5bWaexpW1vDMgRj83W7HqtUpQ4go3FrlWkK4gU CDnKZmT6hEoac4Vs8Fz5DCRPAt7Pg2d+p0w4XBEsccwgr+tD9A0HZXghQyQZvlLRrTMW /8fSPWOKlWX/EccdtzG/chWyXT10FYzzv8tQ7B/OwrVoiBy2pdQp0NvCCy78MlQKB5TH tR8A7/dy5mi3Og17vsz/8Iwy/G3r4gYJR5F78batAjHsvMYA8PvhdEPsAcbXSHinfpEg V9VjdU+UQuz3g1cwae7r2wPf9ZWUMJy/bwNv5xkkzRYEGlnkYsg8wIh5N+pKw08erG+z kUvA== X-Gm-Message-State: AA+aEWZK+LYIQFhasVG35BhxrvfLWH0olX8f8vbG1ig1djsH0YiJwgb3 ttzc1JlHoHc7tig+huBXyhErATlr X-Google-Smtp-Source: AFSGD/XbH3m/nGCQfVkDBoGsL1tWGdn3drOmaakzTD8j0Q72zl1iB59f7w15J+jQjJvmOb97+4b1ew== X-Received: by 2002:ac8:38e2:: with SMTP id g31mr23696049qtc.55.1544029674818; Wed, 05 Dec 2018 09:07:54 -0800 (PST) Original-Received: from archlinux ([181.228.213.205]) by smtp.gmail.com with ESMTPSA id 94sm21953850qks.8.2018.12.05.09.07.53 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 05 Dec 2018 09:07:54 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. 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:153117 Archived-At: Say I set the image to fit window's width. Then turn auto-revert-mode on. This is for example to track a plot I'm updating from an interactive python session using matplotlib. This kind of exploratory usage is common nowadays and it would be nice if emacs supported it out of the box. Problem is that each time the buffer reverts the image restores its full size. --- In GNU Emacs 26.1.90 (build 4, x86_64-pc-linux-gnu, GTK+ Version 3.24.1) of 2018-12-05 built on archlinux Repository revision: c7897c27861fd8b2690f40e77402edced6aa0ceb Windowing system distributor 'The X.Org Foundation', version 11.0.12003000 Recent messages: Sent: import matplotlib... Reverting buffer =E2=80=98fig.png=E2=80=99. ImageMagick error: improper image header `/tmp/fig.png' @ error/png.c/ReadP= NGImage/4092 Reverting buffer =E2=80=98fig.png=E2=80=99. Creating customization items... Creating group... Creating group entries...done Creating customization items ...done Resetting customization items...done Creating customization setup...done Configured using: 'configure --prefix=3D/home/carlos/local/stow/emacs-26 --libexecdir=3D/home/carlos/local/stow/emacs-26/lib --with-x-toolkit=3Dgtk3 --with-xft --with-modules' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS GLIB NOTIFY ACL GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS LIBSYSTEMD LCMS2 Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Custom Minor modes in effect: projectile-mode: t pdf-occur-global-minor-mode: t diff-auto-refine-mode: t pyvenv-mode: t shell-dirtrack-mode: t xclip-mode: t winner-mode: t show-paren-mode: t ido-ubiquitous-mode: t ido-everywhere: t global-company-mode: t company-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny rfc822 mml mml-sec epa derived epg mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail iimage vc-git whitespace visual-fill-column autorevert filenotify image-file image-dired projectile pdf-occur ibuf-ext ibuffer ibuffer-loaddefs tablist tablist-filter semantic/wisent/comp semantic/wisent semantic/wisent/wisent semantic/util-modes semantic/util semantic semantic/tag semantic/lex semantic/fw mode-local cedet dired dired-loaddefs pdf-isearch let-alist pdf-misc imenu pdf-tools pdf-view bookmark pp jka-compr pdf-cache pdf-info tq pdf-util image-mode ox-md ox-html table ox-beamer ox-latex ox-ascii ox-publish ox org-capture org-protocol org-element avl-tree generator org org-macro org-footnote org-pcomplete org-list org-faces org-entities noutline outline org-version ob-python ob-emacs-lisp ob ob-tangle org-src ob-ref ob-lob ob-table ob-keys ob-exp ob-comint ob-core ob-eval org-compat org-macs org-loaddefs find-func cal-menu calendar cal-loaddefs cl-extra yasnippet elec-pair highlight-indentation flymake-proc flymake warnings help-fns radix-tree help-mode elpy find-file-in-project ivy delsel colir color ivy-overlay ffap thingatpt windmove diff-mode elpy-shell pyvenv esh-var esh-io esh-cmd esh-opt esh-ext esh-proc esh-arg esh-groups eshell esh-module esh-mode esh-util elpy-profile elpy-django elpy-refactor subr-x python tramp-sh tramp tramp-compat tramp-loaddefs trampver ucs-normalize shell pcomplete parse-time format-spec advice json map grep compile comint ansi-color files-x easy-mmode doom-themes-org company-oddmuse company-keywords company-etags etags xref project company-gtags company-dabbrev-code company-dabbrev company-files company-capf company-cmake company-xcode company-clang company-semantic company-eclim company-template company-bbdb doom-tomorrow-night-theme doom-themes doom-themes-common xclip winner ring paren ido-completing-read+ memoize s cus-edit minibuf-eldef ido gnus nnheader gnus-util rmail rmail-loaddefs rfc2047 rfc2045 ietf-drums mail-utils mm-util mail-prsvr wid-edit company edmacro kmacro pcase cus-start cus-load finder-inf info package easymenu epg-config url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 758495 39921) (symbols 48 46843 1) (miscs 40 2017 444) (strings 32 150123 7202) (string-bytes 1 4402350) (vectors 16 73258) (vector-slots 8 1213942 17774) (floats 8 570 543) (intervals 56 846 72) (buffers 992 37))