On 2009-07-15 11:22 (+0200), Michal wrote:
Imagine the following situation:
I just changed some part of file, but did not save it.
Now I want to create a patch comparing to the original file.
Do You know any emacs command that would do it for me?
1) M-x diff-buffer-with-file
2) Save the file with C-u C-u C-x C-s, that is, the normal save command
with two prefix arguments. It will force the previously saved file
to become backup file and the current version is saved as the main
file. Then compare them.