From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Timur Aydin Newsgroups: gmane.emacs.help Subject: Re: global-auto-revert-mode and file time stamps Date: Tue, 21 May 2013 20:54:46 +0300 Message-ID: <519BB4E6.8090801@taydin.org> References: <519B7860.5050805@taydin.org> <8566E696-BD27-4CA3-A809-89590BAA8A48@Web.DE> 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 1369158941 6795 80.91.229.3 (21 May 2013 17:55:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 21 May 2013 17:55:41 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Peter Dyballa Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue May 21 19:55:41 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 1Ueqmi-0000PF-Ls for geh-help-gnu-emacs@m.gmane.org; Tue, 21 May 2013 19:55:40 +0200 Original-Received: from localhost ([::1]:49377 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ueqmi-0006FG-9d for geh-help-gnu-emacs@m.gmane.org; Tue, 21 May 2013 13:55:40 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:48608) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UeqmX-0006E9-AJ for help-gnu-emacs@gnu.org; Tue, 21 May 2013 13:55:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UeqmR-00050S-AH for help-gnu-emacs@gnu.org; Tue, 21 May 2013 13:55:29 -0400 Original-Received: from oproxy12-pub.bluehost.com ([50.87.16.10]:57757) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1UeqmQ-0004zL-Vp for help-gnu-emacs@gnu.org; Tue, 21 May 2013 13:55:23 -0400 Original-Received: (qmail 18590 invoked by uid 0); 21 May 2013 17:55:00 -0000 Original-Received: from unknown (HELO box401.bluehost.com) (69.89.31.201) by oproxy12.bluehost.com with SMTP; 21 May 2013 17:55:00 -0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=taydin.org; s=default; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:References:Subject:CC:To:MIME-Version:From:Date:Message-ID; bh=e4cREq7RCbgLujB7KKNrH7g5AzVDcuLEYXGAZtJsf8Y=; b=SQgvJRdpjtkbFc9KZ6h/jHQt1RdIWde3T9WU3aAkh9j1KCRBqKhnFU14pEOJlWWMFGRPjVfiOnuoYwakAfQRfOTiZAw/v56yVMBCI1MR2mCRUtBlCgwvlXUThNprkYaD; Original-Received: from [176.41.233.165] (port=61515 helo=[10.2.1.100]) by box401.bluehost.com with esmtpsa (TLSv1:CAMELLIA256-SHA:256) (Exim 4.80) (envelope-from ) id 1Ueqm3-0007KF-S9; Tue, 21 May 2013 11:55:00 -0600 User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:17.0) Gecko/20130509 Thunderbird/17.0.6 In-Reply-To: <8566E696-BD27-4CA3-A809-89590BAA8A48@Web.DE> X-Identified-User: {1590:box401.bluehost.com:taydinor:taydin.org} {sentby:smtp auth 176.41.233.165 authed with ta@taydin.org} X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 50.87.16.10 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:90958 Archived-At: On 5/21/2013 8:26 PM, Peter Dyballa wrote: > GNU Emacs will never automatically return to a previous state of the file. That's left up to you. What it does is, that it warns you, that it gives you information to make better decisions. I don't want emacs to return the file to its previous state. global-auto-revert-mode doesn't do that, anyway. global-auto-revert-mode detects that a file has been changed on disc, and if I haven't made any edits to that file, it reverts the file _AUTOMATICALL_, without asking any questions. So that works as expected. 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. Hope this makes it clear... -- Timur Aydin