[Top][All Lists]

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

Re: "file has changed" on network drive

From: Eli Zaretskii
Subject: Re: "file has changed" on network drive
Date: Tue, 29 Jan 2013 13:06:28 +0200

> From: Brendan Halpin <>
> Date: Tue, 29 Jan 2013 10:03:34 +0000
> I have a CIFS-mounted network drive, whose clock seems to be very
> slightly different from my computer's clock (despite NTP on both
> devices). Consequently when I edit a file on the drive, there is a small
> discrepancy between (visited-file-modtime) and the file-system
> timestamp, and Emacs complains that the file has changed on disc. The
> difference is small, and only in the third and fourth elements of the
> time as Emacs represents it (interestingly, on other file systems these
> two elements are 0).
> Is there a known work-around for this problem? A function at writing
> that uses set-visited-file-modtime to set the time stamp to the
> filesystem value? If so, where to hook it in?

You don't say which Emacs version you use.  A very similar problem was
lately fixed in the development sources, see

reply via email to

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