summaryrefslogtreecommitdiff
path: root/lisp/diff.el
diff options
context:
space:
mode:
authorChong Yidong <cyd@stupidchicken.com>2010-04-30 22:19:40 -0400
committerChong Yidong <cyd@stupidchicken.com>2010-04-30 22:19:40 -0400
commit84716442f070dbf91fd3a1db173e130b78de561a (patch)
treeffc06855643a2a6a3566bdd48a9f0580f60f1708 /lisp/diff.el
parent07125a915e33a3a5cadea27f3f43647969ebf496 (diff)
downloademacs-84716442f070dbf91fd3a1db173e130b78de561a.tar.gz
Avoid using trash for certain temp files (Bug#6070).
* server.el (server-sentinel, server-start, server-force-delete): * jka-compr.el (jka-compr-partial-uncompress) (jka-compr-call-process, jka-compr-write-region, jka-compr-load): * epg.el (epg--make-temp-file, epg-decrypt-string) (epg-encrypt-string, epg-verify-string, epg-sign-string): * diff.el (diff-sentinel): Bind delete-by-moving-to-trash to nil before deleting (Bug#6070).
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))