Compare buffer with file on disk

Sometimes you’ll find yourself in the position where you want to see the differences between the unsaved buffer you are editing, and the saved version of the file on the disk. Ediff does this nicely with the command M-x ediff-current-file.