help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Best way to check file modification time?


From: Joost Kremers
Subject: Re: Best way to check file modification time?
Date: 19 Nov 2015 14:10:02 GMT
User-agent: slrn/1.0.1 (Linux)

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)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]