all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: rediesmatthias@yahoo.de
Cc: 21598@debbugs.gnu.org
Subject: bug#21598: 24.5; Auto-revert-mode loads images as text
Date: Thu, 01 Oct 2015 22:45:08 +0300	[thread overview]
Message-ID: <83h9ma8jaz.fsf@gnu.org> (raw)
In-Reply-To: <83mvw28lay.fsf@gnu.org>

> Date: Thu, 01 Oct 2015 22:01:57 +0300
> From: Eli Zaretskii <eliz@gnu.org>
> Cc: 21598@debbugs.gnu.org
> 
> > From: Matthias Redies <rediesmatthias@yahoo.de>
> > Date: Thu, 1 Oct 2015 17:17:03 +0200
> > 
> > 1. open image C-x C-f and select "output.png". This will display the 
> > image as an image as it should.
> > 2. change Image using an external program. This causes the
> > auto-revert-mode to reload the image(good), but as a text, although my
> > default (as in 1.) is to open the picture as an image
> 
> This happens because autorevert.el calls revert-buffer with its 3rd
> argument non-nil.  It is easy to change that to nil for buffers under
> image-mode, but I'm curious why doesn't autorevert.el do that for all
> the other modes.  Does anyone know?

Actually, I see that image-mode installs an after-revert-hook, bit the
hook function, image-after-revert-hook, does nothing in this case
because image-get-display-property returns nil.





  reply	other threads:[~2015-10-01 19:45 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-01 15:17 bug#21598: 24.5; Auto-revert-mode loads images as text Matthias Redies
2015-10-01 19:01 ` Eli Zaretskii
2015-10-01 19:45   ` Eli Zaretskii [this message]
2016-07-25 21:42     ` Nicolas Petton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83h9ma8jaz.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=21598@debbugs.gnu.org \
    --cc=rediesmatthias@yahoo.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.