From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Joost Kremers Newsgroups: gmane.emacs.help Subject: Re: Best way to check file modification time? Date: 19 Nov 2015 14:10:02 GMT Message-ID: References: NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1447942435 24395 80.91.229.3 (19 Nov 2015 14:13:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 19 Nov 2015 14:13:55 +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 Nov 19 15:13:55 2015 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 1ZzPyE-0005z5-Bc for geh-help-gnu-emacs@m.gmane.org; Thu, 19 Nov 2015 15:13:54 +0100 Original-Received: from localhost ([::1]:41970 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZzPyD-00058o-OB for geh-help-gnu-emacs@m.gmane.org; Thu, 19 Nov 2015 09:13:53 -0500 Original-Path: usenet.stanford.edu!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 19 Original-X-Trace: individual.net neo5u2oMZfQHkuR++TjQdwFie1rBMlgY+ldE8uRs0S/Xp52F4/ Cancel-Lock: sha1:P/gOrw9xG4wvzKzruFXmwox0s7c= Mail-Copies-To: nobody X-Editor: Emacs of course! User-Agent: slrn/1.0.1 (Linux) Original-Xref: usenet.stanford.edu gnu.emacs.help:215846 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:108134 Archived-At: Barry Margolin wrote: > Instead of saving the file's modification time, remember the time that > you started reading the file. Then when you're about to save it, see if > the mod time is newer than that. Ok, that sounds like a good suggestion. Thanks. > This can potentially run into a problem if the file is on a server and > there's clock skew between the client and server, but that's a common > problem. Yeah, I already figured it would not be possible to exclude the risk completely. Such is life. -- Joost Kremers joostkremers@fastmail.fm Selbst in die Unterwelt dringt durch Spalten Licht EN:SiS(9)