I get asked this and it gives me these options:
You want to modify a buffer whose disk file has changed
since you last read it in or saved it with this buffer.
If you say y to go ahead and modify this buffer,
you risk ruining the work of whoever rewrote the file.
If you say r to revert, the contents of the buffer are refreshed
from the file on disk.
If you say n, the change you started to make will be aborted.
Usually, you should type r to get the latest version of the
file, then make the change again.
With ediff-current-file, I can view the diff between saved and buffer, but couldn't this be called from this window?
I also get a GUI popup window saying
* has changed since visited or saved. Save anyway?
How can I prevent emacs from showing such a graphical popup?;)
use-dialog-box
user option. – phils Mar 15 '23 at 09:29