Skip to main content
mention clock synchronization
Source Link
db48x
  • 19.1k
  • 1
  • 24
  • 29

Yes, you could augment it to include the times in the message if you want.

But ultimately the fix needs to be in your server. Something is changing the modification timestamps on your files after you save them. Perhaps a backup process running on the server? Perhaps the SMB server is implementing write caching in a way that delays the assignment of the modification timestamp? There’s no way for us to know.

Edit:

It occurs to me that I forgot to mention the simplest possible cause. The clocks on the server and on your PC might not be in sync. If your PC thinks that it is 5:00pm, but the server’s clock says that it is 5:01pm, then when next you save the file Emacs will read 5:01pm as the modification time of the file and think that someone (or some other process) has modified the file when Emacs wasn’t looking. The best way to fix this is for both your PC and your server to synchronize their clocks to the same NTP server. Again, this is out of scope for the Emacs StackExchange, but you can search your server’s documentation for NTP or clock synchronization to figure out how to configure it correctly.

Yes, you could augment it to include the times in the message if you want.

But ultimately the fix needs to be in your server. Something is changing the modification timestamps on your files after you save them. Perhaps a backup process running on the server? Perhaps the SMB server is implementing write caching in a way that delays the assignment of the modification timestamp? There’s no way for us to know.

Yes, you could augment it to include the times in the message if you want.

But ultimately the fix needs to be in your server. Something is changing the modification timestamps on your files after you save them. Perhaps a backup process running on the server? Perhaps the SMB server is implementing write caching in a way that delays the assignment of the modification timestamp? There’s no way for us to know.

Edit:

It occurs to me that I forgot to mention the simplest possible cause. The clocks on the server and on your PC might not be in sync. If your PC thinks that it is 5:00pm, but the server’s clock says that it is 5:01pm, then when next you save the file Emacs will read 5:01pm as the modification time of the file and think that someone (or some other process) has modified the file when Emacs wasn’t looking. The best way to fix this is for both your PC and your server to synchronize their clocks to the same NTP server. Again, this is out of scope for the Emacs StackExchange, but you can search your server’s documentation for NTP or clock synchronization to figure out how to configure it correctly.

Source Link
db48x
  • 19.1k
  • 1
  • 24
  • 29

Yes, you could augment it to include the times in the message if you want.

But ultimately the fix needs to be in your server. Something is changing the modification timestamps on your files after you save them. Perhaps a backup process running on the server? Perhaps the SMB server is implementing write caching in a way that delays the assignment of the modification timestamp? There’s no way for us to know.