The ediff lefts temporary files "/tmp/fineDiff*" when kill emacs during an ediff comparing. Reproducing steps: 1. echo 0 > /tmp/0; echo 1 > /tmp/1 2. emacs -nw -q -f ediff-files-command /tmp/0 /tmp/1 on the ediff control buffer, press "n" to move to first difference; there should have two temp files like /tmp/fineDiffA* and /tmp/fineDiffB* were generated by ediff, stay on the ediff buffer (do not press "q" to quit the ediff session). then 3. Press "C-x C-c" or kill-emacs to quit the emacs directly. Then two temp files /tmp/fineDiff* were left there. This patch will make sure the temp files be removed when kill-emacs without quitting the ediff session.