From 5840a0d4d385ce0376a356dd51dee5125440b696 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Sat, 7 Sep 2002 21:30:37 +0000 Subject: [PATCH] (diff-buffer-with-file): Call diff synchronously, so we don't delete the temporary file before diff has a chance to read it. --- lisp/files.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))) -- 2.39.5