1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00

(diff-buffer-with-file): Call diff synchronously, so we don't delete

the temporary file before diff has a chance to read it.
This commit is contained in:
Colin Walters 2002-09-07 21:30:37 +00:00
parent 0f7b0f8837
commit 5840a0d4d3

View file

@ -3008,7 +3008,7 @@ This requires the external program \"diff\" to be in your `exec-path'."
(save-restriction
(widen)
(write-region (point-min) (point-max) tempfile nil 'nomessage)))
(diff buf-filename tempfile))
(diff buf-filename tempfile nil t))
(when (file-exists-p tempfile)
(delete-file tempfile)))
nil)))