From 2b3657424edb4ce61cc0e764f83c04f6b4a4a1ea Mon Sep 17 00:00:00 2001 From: teranisi Date: Mon, 9 Jun 2003 14:26:57 +0000 Subject: [PATCH] * pgg-gpg.el (pgg-gpg-process-region): Undo the last change; Add --yes option to overwrite existing output file. --- ChangeLog | 5 +++++ pgg-gpg.el | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index dd93a3c..971b240 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2003-06-09 Yuuichi Teranishi + + * pgg-gpg.el (pgg-gpg-process-region): Undo the last change; + Add --yes option to overwrite existing output file. + 2003-05-29 Yuuichi Teranishi * pgg-gpg.el (pgg-gpg-process-region): Undo the last change. diff --git a/pgg-gpg.el b/pgg-gpg.el index 191c90b..89498c8 100644 --- a/pgg-gpg.el +++ b/pgg-gpg.el @@ -60,12 +60,13 @@ (luna-make-entity 'pgg-scheme-gpg)))) (defun pgg-gpg-process-region (start end passphrase program args) - (let* ((output-file-name (make-temp-name + (let* ((output-file-name (make-temp-file (expand-file-name "pgg-output" temporary-file-directory))) (args `("--status-fd" "2" ,@(if passphrase '("--passphrase-fd" "0")) + "--yes" ; overwrite "--output" ,output-file-name ,@pgg-gpg-extra-args ,@args)) (output-buffer pgg-output-buffer) -- 1.7.10.4