GNU bug report logs - #16515
24.3; Images do not automatically revert on file modification when auto-revert mode enabled for image-mode.

Previous Next

Package: emacs;

Reported by: "Gooch, Allen" <agooch <at> bioware.com>

Date: Tue, 21 Jan 2014 18:16:02 UTC

Severity: normal

Tags: fixed, moreinfo

Found in version 24.3

Fixed in version 27.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Michael Heerdegen <michael_heerdegen <at> web.de>
To: "Gooch\, Allen" <agooch <at> bioware.com>
Cc: 16515 <at> debbugs.gnu.org
Subject: bug#16515: 24.3; Images do not automatically revert on file modification when auto-revert mode enabled for image-mode.
Date: Tue, 21 Jan 2014 22:12:47 +0100
Michael Heerdegen <michael_heerdegen <at> web.de> writes:

> > (add-hook 'image-mode-hook (lambda ()
> >                               (auto-revert-mode 1)))
> >  
> > Next perform the following steps:
> > 1) load a PNG file (opens in image-mode buffer)
> > 2) modify PNG file
> > 3) notice that PNG in image-mode buffer does NOT automatically revert
>
> More precisely, reverting happens, but after it the image is displayed
> as text (at least that's what you said in gnu.emacs.help, and that's
> what I see).

When adding

  0)  (auto-image-file-mode +1)

to the recipe, reverting happens as expected.  I must admit that I don't
understand this.  Why does `auto-image-file-mode' help here?  And why
does emacs -Q display a png automatically as image when finding it
although `auto-image-file-mode' is off by default?


Michael.




This bug report was last modified 5 years and 238 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.