Is there an emacs command to show the difference between a buffer and its file?
For example, I’ve made some edits to a buffer, forgotten what they were, and now I need to save the buffer to its file, but want to check what I have actually changed first.
diff-buffer-with-file. I just googled for “emacs compare buffer file changed”.