all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Question about auto-reverting images in image-mode
@ 2014-01-16 17:02 Gooch, Allen
  2014-01-17 22:17 ` Michael Heerdegen
       [not found] ` <mailman.12231.1389997085.10748.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 3+ messages in thread
From: Gooch, Allen @ 2014-01-16 17:02 UTC (permalink / raw)
  To: help-gnu-emacs@gnu.org

I'm running GNU Emacs 24.3.1 (i386-mingw-nt6.1.7601) on Windows 7, and am trying to enable auto-reverting of images in image mode.  I've added the following to my emacs configuration:

(add-hook 'image-mode-hook (lambda ()
                             (auto-revert-mode 1)))

Now when a PNG file changes emacs reverts the file, but displays the image binary bytes, not the image itself.  How would I configure emacs to redisplay the actual image?

Many thanks in advance,

-ag




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Question about auto-reverting images in image-mode
  2014-01-16 17:02 Question about auto-reverting images in image-mode Gooch, Allen
@ 2014-01-17 22:17 ` Michael Heerdegen
       [not found] ` <mailman.12231.1389997085.10748.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 3+ messages in thread
From: Michael Heerdegen @ 2014-01-17 22:17 UTC (permalink / raw)
  To: help-gnu-emacs

Hi,

> I'm running GNU Emacs 24.3.1 (i386-mingw-nt6.1.7601) on Windows 7, and
> am trying to enable auto-reverting of images in image mode.  I've
> added the following to my emacs configuration:
>
> (add-hook 'image-mode-hook (lambda ()
>                              (auto-revert-mode 1)))
>
> Now when a PNG file changes emacs reverts the file, but displays the
> image binary bytes, not the image itself.  How would I configure emacs
> to redisplay the actual image?

AFAIK, this should work without configuration.  It works for me with my
config, but not with emacs -Q.  Please make a bug report.

BTW, `image-after-revert-hook' is the function that should take care of
this.


Regards,

Michael.




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Question about auto-reverting images in image-mode
       [not found] ` <mailman.12231.1389997085.10748.help-gnu-emacs@gnu.org>
@ 2014-01-21 20:05   ` Allen Gooch
  0 siblings, 0 replies; 3+ messages in thread
From: Allen Gooch @ 2014-01-21 20:05 UTC (permalink / raw)
  To: help-gnu-emacs

On Friday, January 17, 2014 4:17:37 PM UTC-6, Michael Heerdegen wrote:
> Hi,
> 
> 
> 
> > I'm running GNU Emacs 24.3.1 (i386-mingw-nt6.1.7601) on Windows 7, and
> 
> > am trying to enable auto-reverting of images in image mode.  I've
> 
> > added the following to my emacs configuration:
> 
> >
> 
> > (add-hook 'image-mode-hook (lambda ()
> 
> >                              (auto-revert-mode 1)))
> 
> >
> 
> > Now when a PNG file changes emacs reverts the file, but displays the
> 
> > image binary bytes, not the image itself.  How would I configure emacs
> 
> > to redisplay the actual image?
> 
> 
> 
> AFAIK, this should work without configuration.  It works for me with my
> 
> config, but not with emacs -Q.  Please make a bug report.
> 
> 
> 
> BTW, `image-after-revert-hook' is the function that should take care of
> 
> this.
> 
> 
> 
> 
> 
> Regards,
> 
> 
> 
> Michael.

Thanks for the info, Michael.  I've filed bug #16515 (http://lists.gnu.org/archive/html/bug-gnu-emacs/2014-01/msg01063.html) on this.

-ag


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-01-21 20:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-16 17:02 Question about auto-reverting images in image-mode Gooch, Allen
2014-01-17 22:17 ` Michael Heerdegen
     [not found] ` <mailman.12231.1389997085.10748.help-gnu-emacs@gnu.org>
2014-01-21 20:05   ` Allen Gooch

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.