Tags: patch As requested in bug#78777, here's a separate bug report for the following problem: - Start with: % src/emacs -Q BUGS & % echo foo >>BUGS - In the Emacs session type: a Notice how Emacs correctly prompts about "changed on disk, really edit". Hit `C-g` so we don't actually edit the buffer. - In the Emacs session do: M-: (insert-file-contents "README" nil nil nil t) RET Notice how Emacs just blindly changed the contents of the buffer without prompting about "changed on disk, really edit". I think this last step is an error, we should be prompted just as we are with any other buffer modification that diverges from the file's contents. The patch below does just that, Stefan