From: Colin Walters Date: Sat, 7 Sep 2002 21:30:37 +0000 (+0000) Subject: (diff-buffer-with-file): Call diff synchronously, so we don't delete X-Git-Tag: ttn-vms-21-2-B4~13330 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=5840a0d4d385ce0376a356dd51dee5125440b696;p=emacs.git (diff-buffer-with-file): Call diff synchronously, so we don't delete the temporary file before diff has a chance to read it. --- diff --git a/lisp/files.el b/lisp/files.el index ac25232bafe..ac61bbbd017 100644 --- a/lisp/files.el +++ b/lisp/files.el @@ -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)))