This change should not be merged into the trunk.
* pgg-gpg.el (pgg-gpg-process-region): Bind
delete-by-moving-to-trash to nil.
* pgg-pgp.el (pgg-pgp-process-region, pgg-pgp-verify-region)
(pgg-pgp-snarf-keys-region):
* pgg-pgp5.el (pgg-pgp5-process-region, pgg-pgp5-verify-region)
(pgg-pgp5-snarf-keys-region): Likewise.
+2011-02-14 Chong Yidong <cyd@stupidchicken.com>
+
+ * pgg-gpg.el (pgg-gpg-process-region): Bind
+ delete-by-moving-to-trash to nil.
+
+ * pgg-pgp.el (pgg-pgp-process-region, pgg-pgp-verify-region)
+ (pgg-pgp-snarf-keys-region):
+ * pgg-pgp5.el (pgg-pgp5-process-region, pgg-pgp5-verify-region)
+ (pgg-pgp5-snarf-keys-region): Likewise.
+
2011-02-12 Chong Yidong <cyd@stupidchicken.com>
* files.el (copy-directory): Revert to pre-2011-01-29 version.
(if (and process (eq 'run (process-status process)))
(interrupt-process process))
(if (file-exists-p output-file-name)
- (delete-file output-file-name))
+ (let ((delete-by-moving-to-trash nil))
+ (delete-file output-file-name)))
(set-default-file-modes orig-mode))))
(defun pgg-gpg-possibly-cache-passphrase (passphrase &optional key notruncate)
(if (and process (eq 'run (process-status process)))
(interrupt-process process))
(condition-case nil
- (delete-file errors-file-name)
+ (let ((delete-by-moving-to-trash nil))
+ (delete-file errors-file-name))
(file-error nil)))))
(defun pgg-pgp-lookup-key (string &optional type)
(setq args (concat args " " (shell-quote-argument signature)))))
(setq args (concat args " " (shell-quote-argument orig-file)))
(pgg-pgp-process-region (point)(point) nil pgg-pgp-program args)
- (delete-file orig-file)
- (if signature (delete-file signature))
+ (let ((delete-by-moving-to-trash nil))
+ (delete-file orig-file))
+ (if signature
+ (let ((delete-by-moving-to-trash nil))
+ (delete-file signature)))
(pgg-process-when-success
(goto-char (point-min))
(let ((case-fold-search t))
(let ((coding-system-for-write 'raw-text-dos))
(write-region start end key-file))
(pgg-pgp-process-region start end nil pgg-pgp-program args)
- (delete-file key-file)
+ (let ((delete-by-moving-to-trash nil))
+ (delete-file key-file))
(pgg-process-when-success nil)))
(provide 'pgg-pgp)
(if (and process (eq 'run (process-status process)))
(interrupt-process process))
(condition-case nil
- (delete-file errors-file-name)
+ (let ((delete-by-moving-to-trash nil))
+ (delete-file errors-file-name))
(file-error nil)))))
(defun pgg-pgp5-lookup-key (string &optional type)
(copy-file signature (setq signature (concat orig-file ".asc")))
(setq args (append args (list signature))))
(pgg-pgp5-process-region (point)(point) nil pgg-pgp5-pgpv-program args)
- (delete-file orig-file)
- (if signature (delete-file signature))
+ (let ((delete-by-moving-to-trash nil))
+ (delete-file orig-file))
+ (if signature
+ (let ((delete-by-moving-to-trash nil))
+ (delete-file signature)))
(with-current-buffer pgg-errors-buffer
(goto-char (point-min))
(if (re-search-forward "^Good signature" nil t)
(let ((coding-system-for-write 'raw-text-dos))
(write-region start end key-file))
(pgg-pgp5-process-region start end nil pgg-pgp5-pgpk-program args)
- (delete-file key-file)
+ (let ((delete-by-moving-to-trash nil))
+ (delete-file key-file))
(pgg-process-when-success nil)))
(provide 'pgg-pgp5)