I'm working with source code on an SMB NAS, and due to network delay, the actual mtime is sometimes a bit later than when Emacs initiated the save when saving. This caused Emacs to mistake the file as being modified by another program. (I don't know the actual mtime is, but I suspect this may be the problem.)
The problem is that: when I save the file, I often repeatedly press C-x C-s sequence quickly (I'm having CUA enabled) - a habit I have to be certain that the files are saved. And the minibuffer prompts that the buffer was modified, and ask me "yes/no" question of whether to overwrite the file, which I'm certain that I can safely do.
Is there a way I can set grace period (e.g. 2 seconds) that Emacs do not consider it modified by an external program?
(info "(elisp)Modification Time")provides the relevant documentation.(info "(elisp)Saving Buffers")