summaryrefslogtreecommitdiff
path: root/lisp/pgg-gpg.el
diff options
context:
space:
mode:
authorSimon Josefsson <jas@extundo.com>2006-04-05 11:00:11 +0000
committerSimon Josefsson <jas@extundo.com>2006-04-05 11:00:11 +0000
commit39a270b10cf477fa5c6979a623cee4e33b85d8fb (patch)
tree68cde8afabdc137df91ddb0252b80620a3529e2c /lisp/pgg-gpg.el
parenta293e9b6eddac033fd53113b903664753a7a7d64 (diff)
downloademacs-39a270b10cf477fa5c6979a623cee4e33b85d8fb.tar.gz
emacs-39a270b10cf477fa5c6979a623cee4e33b85d8fb.tar.bz2
emacs-39a270b10cf477fa5c6979a623cee4e33b85d8fb.zip
2006-04-05 Daiki Ueno <ueno@unixuser.org>
* pgg-gpg.el (pgg-gpg-encrypt-region, pgg-gpg-sign-region): Wait for BEGIN_SIGNING too, new in GnuPG 1.4.3.
Diffstat (limited to 'lisp/pgg-gpg.el')
-rw-r--r--lisp/pgg-gpg.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/pgg-gpg.el b/lisp/pgg-gpg.el
index 293431b7e84..d8ceeabc25f 100644
--- a/lisp/pgg-gpg.el
+++ b/lisp/pgg-gpg.el
@@ -256,7 +256,7 @@ If optional argument SIGN is non-nil, do a combined sign and encrypt."
(list pgg-gpg-user-id))))))))
(process (pgg-gpg-start-process args)))
(if (and sign (not pgg-gpg-use-agent))
- (pgg-gpg-wait-for-status process '("GOOD_PASSPHRASE")))
+ (pgg-gpg-wait-for-status process '("BEGIN_SIGNING" "GOOD_PASSPHRASE")))
(process-send-region process start end)
(pgg-gpg-wait-for-completion process)
(save-excursion
@@ -303,7 +303,7 @@ If optional argument SIGN is non-nil, do a combined sign and encrypt."
(if pgg-text-mode '("--textmode"))))
(process (pgg-gpg-start-process args)))
(unless pgg-gpg-use-agent
- (pgg-gpg-wait-for-status process '("GOOD_PASSPHRASE")))
+ (pgg-gpg-wait-for-status process '("BEGIN_SIGNING" "GOOD_PASSPHRASE")))
(process-send-region process start end)
(pgg-gpg-wait-for-completion process)
(save-excursion