* pgg-pgp.el (pgg-pgp-process-region): Set `PGPPASSFD' to 0 before
authorueno <ueno>
Thu, 4 Nov 1999 18:16:46 +0000 (18:16 +0000)
committerueno <ueno>
Thu, 4 Nov 1999 18:16:46 +0000 (18:16 +0000)
starting PGP process.
* pgg-pgp5.el (pgg-pgp5-process-region): Ditto.

pgg-pgp.el
pgg-pgp5.el

index 1b6f298..dd4cd44 100644 (file)
     (with-current-buffer (get-buffer-create output-buffer)
       (buffer-disable-undo)
       (erase-buffer))
+    (when passphrase
+      (setenv "PGPPASSFD" "0"))
     (setq process
          (apply #'start-process-shell-command "*PGP*" output-buffer
                 program args))
     (set-process-sentinel process 'ignore)
     (when passphrase
-      (setenv "PGPPASSFD" "0")
       (process-send-string process (concat passphrase "\n")))
     (process-send-region process start end)
     (process-send-eof process)
index 6e7a920..ad396e3 100644 (file)
     (with-current-buffer (get-buffer-create output-buffer)
       (buffer-disable-undo)
       (erase-buffer))
+    (when passphrase
+      (setenv "PGPPASSFD" "0"))
     (setq process
          (apply #'start-process-shell-command "*PGP*" output-buffer
                 program args))
     (set-process-sentinel process 'ignore)
     (when passphrase
-      (setenv "PGPPASSFD" "0")
       (process-send-string process (concat passphrase "\n")))
     (process-send-region process start end)
     (process-send-eof process)