From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Allen Gooch Newsgroups: gmane.emacs.help Subject: Re: Question about auto-reverting images in image-mode Date: Tue, 21 Jan 2014 12:05:28 -0800 (PST) Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1390335888 22269 80.91.229.3 (21 Jan 2014 20:24:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 21 Jan 2014 20:24:48 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jan 21 21:24:57 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 1W5hsW-0004b1-Gz for geh-help-gnu-emacs@m.gmane.org; Tue, 21 Jan 2014 21:24:56 +0100 Original-Received: from localhost ([::1]:60539 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W5hsW-0002tY-3v for geh-help-gnu-emacs@m.gmane.org; Tue, 21 Jan 2014 15:24:56 -0500 X-Received: by 10.42.123.139 with SMTP id s11mr7975437icr.15.1390334729566; Tue, 21 Jan 2014 12:05:29 -0800 (PST) X-Received: by 10.182.17.67 with SMTP id m3mr97075obd.23.1390334729200; Tue, 21 Jan 2014 12:05:29 -0800 (PST) Original-Path: usenet.stanford.edu!news.glorb.com!uq10no21134igb.0!news-out.google.com!gg4ni13359qab.0!nntp.google.com!c10no20359igq.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=159.153.142.7; posting-account=SOCF6QoAAACF9KOCaBi7KnAV5zoVPgLx Original-NNTP-Posting-Host: 159.153.142.7 User-Agent: G2/1.0 Injection-Date: Tue, 21 Jan 2014 20:05:29 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:203262 X-Mailman-Approved-At: Tue, 21 Jan 2014 15:24:41 -0500 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:95530 Archived-At: 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