summaryrefslogtreecommitdiff
path: root/lisp/diff.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/diff.el')
-rw-r--r--lisp/diff.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/diff.el b/lisp/diff.el
index 0206c17e770..37e52baaaac 100644
--- a/lisp/diff.el
+++ b/lisp/diff.el
@@ -64,8 +64,9 @@
"Code run when the diff process exits.
CODE is the exit code of the process. It should be 0 only if no diffs
were found."
- (if diff-old-temp-file (delete-file diff-old-temp-file))
- (if diff-new-temp-file (delete-file diff-new-temp-file))
+ (let (delete-by-moving-to-trash)
+ (if diff-old-temp-file (delete-file diff-old-temp-file))
+ (if diff-new-temp-file (delete-file diff-new-temp-file)))
(save-excursion
(goto-char (point-max))
(let ((inhibit-read-only t))