From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Brendan Halpin Newsgroups: gmane.emacs.help Subject: "file has changed" on network drive Date: Tue, 29 Jan 2013 10:03:34 +0000 Message-ID: <8738xkuwzt.fsf@wivenhoe.ul.ie> Reply-To: brendan.halpin@ul.ie NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1359453913 24468 80.91.229.3 (29 Jan 2013 10:05:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 29 Jan 2013 10:05:13 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jan 29 11:05:33 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 1U084K-0002oU-Ll for geh-help-gnu-emacs@m.gmane.org; Tue, 29 Jan 2013 11:05:32 +0100 Original-Received: from localhost ([::1]:40441 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U0842-0001CQ-Hl for geh-help-gnu-emacs@m.gmane.org; Tue, 29 Jan 2013 05:05:14 -0500 Original-Path: usenet.stanford.edu!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 22 Original-X-Trace: individual.net cwQZGiIFKVJMthaM6oAj3wEkFAsdG4f+14kRp8fXplnJBQdALL1RZaTo4EOewpSVjY Cancel-Lock: sha1:Ba6HKAtgSQYGfDmHFYEubhMe/p0= sha1:rLgc1kTZirjdc7SktGJAVfr7uEE= User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux) Original-Xref: usenet.stanford.edu gnu.emacs.help:196567 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:88861 Archived-At: 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:brendan.halpin@ul.ie ULSociology on Facebook: http://on.fb.me/fjIK9t http://teaching.sociology.ul.ie/bhalpin/wordpress twitter:@ULSociology