From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ken Goldman Newsgroups: gmane.emacs.help Subject: Re: global-auto-revert-mode and file time stamps Date: Thu, 23 May 2013 17:35:48 -0400 Message-ID: References: <519B7860.5050805@taydin.org> <8566E696-BD27-4CA3-A809-89590BAA8A48@Web.DE> <519BB4E6.8090801@taydin.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1369344987 21928 80.91.229.3 (23 May 2013 21:36:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 23 May 2013 21:36:27 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu May 23 23:36:26 2013 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 1UfdBR-00023I-Ic for geh-help-gnu-emacs@m.gmane.org; Thu, 23 May 2013 23:36:25 +0200 Original-Received: from localhost ([::1]:51146 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UfdBR-00066r-6I for geh-help-gnu-emacs@m.gmane.org; Thu, 23 May 2013 17:36:25 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:49192) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UfdB7-0005z7-OS for help-gnu-emacs@gnu.org; Thu, 23 May 2013 17:36:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UfdB1-0003Gf-Ha for help-gnu-emacs@gnu.org; Thu, 23 May 2013 17:36:05 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:34356) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UfdB1-0003GX-BR for help-gnu-emacs@gnu.org; Thu, 23 May 2013 17:35:59 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UfdB0-0001ph-1X for help-gnu-emacs@gnu.org; Thu, 23 May 2013 23:35:58 +0200 Original-Received: from yktgi01e0-s4.watson.ibm.com ([129.34.20.23]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 23 May 2013 23:35:58 +0200 Original-Received: from kgoldman by yktgi01e0-s4.watson.ibm.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 23 May 2013 23:35:58 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 20 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: yktgi01e0-s4.watson.ibm.com User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130509 Thunderbird/17.0.6 In-Reply-To: <519BB4E6.8090801@taydin.org> 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:91012 Archived-At: On 5/21/2013 1:54 PM, Timur Aydin wrote: > > What doesn't work is, if only the timestamp of the file changes (touch > filename), then emacs doesn't autorevert it, and instead tells me that > it changed and asks whether I want to really edit it. when I 'touch' on Windows or Linux, it does what you expect, not what you're observing. It autoreverts the file. I have this in .emacs: (autoload 'auto-revert-mode "autorevert" nil t) (autoload 'turn-on-auto-revert-mode "autorevert" nil nil) (autoload 'global-auto-revert-mode "autorevert" nil t) (global-auto-revert-mode 1) (setq auto-revert-interval 2) (global-set-key "\C-cr" 'revert-buffer)