From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.help Subject: Re: Question about auto-reverting images in image-mode Date: Fri, 17 Jan 2014 23:17:37 +0100 Message-ID: <87y52e9rsu.fsf@web.de> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1389997088 26089 80.91.229.3 (17 Jan 2014 22:18:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 17 Jan 2014 22:18:08 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jan 17 23:18:15 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1W4Hjy-0007D7-Hm for geh-help-gnu-emacs@m.gmane.org; Fri, 17 Jan 2014 23:18:14 +0100 Original-Received: from localhost ([::1]:40363 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W4Hjx-0002Dl-SC for geh-help-gnu-emacs@m.gmane.org; Fri, 17 Jan 2014 17:18:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35697) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W4Hjh-0002Cu-DC for help-gnu-emacs@gnu.org; Fri, 17 Jan 2014 17:18:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W4Hja-0003yt-3S for help-gnu-emacs@gnu.org; Fri, 17 Jan 2014 17:17:57 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:33115) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W4HjZ-0003yp-T0 for help-gnu-emacs@gnu.org; Fri, 17 Jan 2014 17:17:50 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1W4HjY-0006og-7O for help-gnu-emacs@gnu.org; Fri, 17 Jan 2014 23:17:48 +0100 Original-Received: from dslb-092-074-172-099.pools.arcor-ip.net ([92.74.172.99]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 17 Jan 2014 23:17:48 +0100 Original-Received: from michael_heerdegen by dslb-092-074-172-099.pools.arcor-ip.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 17 Jan 2014 23:17:48 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 23 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: dslb-092-074-172-099.pools.arcor-ip.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) Cancel-Lock: sha1:zA8TV5No22xgFqtI8D39j2+CvzM= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:95465 Archived-At: 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.