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:
parent
0f7b0f8837
commit
5840a0d4d3
1 changed files with 1 additions and 1 deletions
|
|
@ -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)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue