* pgg-gpg.el (pgg-gpg-process-region): Undo the last change;
authorteranisi <teranisi>
Mon, 9 Jun 2003 14:26:57 +0000 (14:26 +0000)
committerteranisi <teranisi>
Mon, 9 Jun 2003 14:26:57 +0000 (14:26 +0000)
Add --yes option to overwrite existing output file.

ChangeLog
pgg-gpg.el

index dd93a3c..971b240 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2003-06-09  Yuuichi Teranishi  <teranisi@gohome.org>
+
+       * pgg-gpg.el (pgg-gpg-process-region): Undo the last change;
+       Add --yes option to overwrite existing output file.
+
 2003-05-29  Yuuichi Teranishi  <teranisi@gohome.org>
 
        * pgg-gpg.el (pgg-gpg-process-region): Undo the last change.
index 191c90b..89498c8 100644 (file)
            (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)