]> git.eshelyaron.com Git - emacs.git/commitdiff
(diff-buffer-with-file): Call diff synchronously, so we don't delete
authorColin Walters <walters@gnu.org>
Sat, 7 Sep 2002 21:30:37 +0000 (21:30 +0000)
committerColin Walters <walters@gnu.org>
Sat, 7 Sep 2002 21:30:37 +0000 (21:30 +0000)
the temporary file before diff has a chance to read it.

lisp/files.el

index ac25232bafee4ddf61862fbc58b869548f0d6f24..ac61bbbd017d37353c9dbd86cc3b4b1b14413bc4 100644 (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)))