]> git.eshelyaron.com Git - emacs.git/commitdiff
2007-02-24 Chris Moore <dooglus@gmail.com>
authorKim F. Storm <storm@cua.dk>
Sat, 24 Feb 2007 00:07:19 +0000 (00:07 +0000)
committerKim F. Storm <storm@cua.dk>
Sat, 24 Feb 2007 00:07:19 +0000 (00:07 +0000)
(pgg-*-encrypt-region):
Check pgg-encrypt-for-me if no other recipients.

lisp/pgg-gpg.el
lisp/pgg-pgp.el
lisp/pgg-pgp5.el

index a2cd14eaae38db62f0d972063d6ec9ce97e7690f..014357aa4e63a2a9f93057de01ff6e141272bf38 100644 (file)
@@ -224,7 +224,7 @@ passphrase cache or user."
           (list "--batch" "--armor" "--always-trust" "--encrypt")
           (if pgg-text-mode (list "--textmode"))
           (if sign (list "--sign" "--local-user" pgg-gpg-user-id))
-          (if recipients
+          (if (or recipients pgg-encrypt-for-me)
               (apply #'nconc
                      (mapcar (lambda (rcpt)
                                (list pgg-gpg-recipient-argument rcpt))
index 1e1bd6d0fd13ffacf361170de76a1d4f65dcca69..9bc494a5ef7f2c315f48a2ae634015e237396fd6 100644 (file)
@@ -143,7 +143,7 @@ Bourne shell or its equivalent \(not tcsh) is needed for \"2>\"."
         (args
          (concat
           "+encrypttoself=off +verbose=1 +batchmode +language=us -fate "
-           (if recipients
+           (if (or recipients pgg-encrypt-for-me)
                (mapconcat 'shell-quote-argument
                           (append recipients
                                   (if pgg-encrypt-for-me
index b438843e73b4f24315b0b909bc0ac729780321ab..7525ee3d98102578a9f343e7b6305d76b5c6e6b9 100644 (file)
@@ -155,7 +155,7 @@ Bourne shell or its equivalent \(not tcsh) is needed for \"2>\"."
         (args
          (append
           `("+NoBatchInvalidKeys=off" "-fat" "+batchmode=1"
-            ,@(if recipients
+            ,@(if (or recipients pgg-encrypt-for-me)
                   (apply #'append
                          (mapcar (lambda (rcpt)
                                    (list "-r"