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

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

"file has changed" on network drive


From: Brendan Halpin
Subject: "file has changed" on network drive
Date: Tue, 29 Jan 2013 10:03:34 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux)

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?


Regards,

Brendan
-- 
Brendan Halpin,   Department of Sociology,   University of Limerick,   Ireland
Tel: w +353-61-213147  f +353-61-202569  h +353-61-338562;  Room F1-009 x 3147
mailto:address@hidden    ULSociology on Facebook: http://on.fb.me/fjIK9t
http://teaching.sociology.ul.ie/bhalpin/wordpress         twitter:@ULSociology


reply via email to

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