unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Brendan Halpin <brendan.halpin@ul.ie>
To: help-gnu-emacs@gnu.org
Subject: "file has changed" on network drive
Date: Tue, 29 Jan 2013 10:03:34 +0000	[thread overview]
Message-ID: <8738xkuwzt.fsf@wivenhoe.ul.ie> (raw)

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


             reply	other threads:[~2013-01-29 10:03 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-29 10:03 Brendan Halpin [this message]
2013-01-29 10:22 ` "file has changed" on network drive Damien Wyart
2013-01-29 11:06 ` Eli Zaretskii
     [not found] ` <mailman.18538.1359457603.855.help-gnu-emacs@gnu.org>
2013-01-29 11:18   ` Brendan Halpin
2013-01-29 22:20     ` Brendan Halpin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8738xkuwzt.fsf@wivenhoe.ul.ie \
    --to=brendan.halpin@ul.ie \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).