(encrypt-region): Refer `pgg-<impl>-user-id' if specified.
(sign-region): Ditto.
(decrypt-region): Ditto.
(insert-key): Ditto.
(luna-define-method encrypt-region ((scheme pgg-scheme-gpg)
start end recipients)
- (let* ((pgg-gpg-user-id pgg-default-user-id)
+ (let* ((pgg-gpg-user-id (or pgg-gpg-user-id pgg-default-user-id))
(args
`("--batch" "--armor" "--always-trust" "--encrypt"
,@(if recipients
(luna-define-method decrypt-region ((scheme pgg-scheme-gpg)
start end)
- (let* ((pgg-gpg-user-id pgg-default-user-id)
+ (let* ((pgg-gpg-user-id (or pgg-gpg-user-id pgg-default-user-id))
(passphrase
(pgg-read-passphrase
(format "GnuPG passphrase for %s: " pgg-gpg-user-id)
(luna-define-method sign-region ((scheme pgg-scheme-gpg)
start end &optional cleartext)
- (let* ((pgg-gpg-user-id pgg-default-user-id)
+ (let* ((pgg-gpg-user-id (or pgg-gpg-user-id pgg-default-user-id))
(passphrase
(pgg-read-passphrase
(format "GnuPG passphrase for %s: " pgg-gpg-user-id)
))
(luna-define-method insert-key ((scheme pgg-scheme-gpg))
- (let* ((pgg-gpg-user-id pgg-default-user-id)
+ (let* ((pgg-gpg-user-id (or pgg-gpg-user-id pgg-default-user-id))
(args (list "--batch" "--export" "--armor"
(concat "\"" pgg-gpg-user-id "\""))))
(pgg-gpg-process-region (point)(point) nil pgg-gpg-program args)
(luna-define-method encrypt-region ((scheme pgg-scheme-pgp)
start end recipients)
- (let* ((pgg-pgp-user-id pgg-default-user-id)
+ (let* ((pgg-pgp-user-id (or pgg-pgp-user-id pgg-default-user-id))
(args
`("+encrypttoself=off +verbose=1" "+batchmode"
"+language=us" "-fate"
(luna-define-method decrypt-region ((scheme pgg-scheme-pgp)
start end)
- (let* ((pgg-pgp-user-id pgg-default-user-id)
+ (let* ((pgg-pgp-user-id (or pgg-pgp-user-id pgg-default-user-id))
(passphrase
(pgg-read-passphrase
(format "PGP passphrase for %s: " pgg-pgp-user-id)
(luna-define-method sign-region ((scheme pgg-scheme-pgp)
start end &optional clearsign)
- (let* ((pgg-pgp-user-id pgg-default-user-id)
+ (let* ((pgg-pgp-user-id (or pgg-pgp-user-id pgg-default-user-id))
(passphrase
(pgg-read-passphrase
(format "PGP passphrase for %s: " pgg-pgp-user-id)
))
(luna-define-method insert-key ((scheme pgg-scheme-pgp))
- (let* ((pgg-pgp-user-id pgg-default-user-id)
+ (let* ((pgg-pgp-user-id (or pgg-pgp-user-id pgg-default-user-id))
(args
(list "+verbose=1" "+batchmode" "+language=us" "-kxaf"
(concat "\"" pgg-pgp-user-id "\""))))
(luna-define-method snarf-keys-region ((scheme pgg-scheme-pgp)
start end)
- (let* ((pgg-pgp-user-id pgg-default-user-id)
+ (let* ((pgg-pgp-user-id (or pgg-pgp-user-id pgg-default-user-id))
(basename (expand-file-name "pgg" temporary-file-directory))
(key-file (make-temp-name basename))
(args
(luna-define-method encrypt-region ((scheme pgg-scheme-pgp5)
start end recipients)
- (let* ((pgg-pgp5-user-id pgg-default-user-id)
+ (let* ((pgg-pgp5-user-id (or pgg-pgp5-user-id pgg-default-user-id))
(args
`("+NoBatchInvalidKeys=off" "-fat" "+batchmode=1"
,@(if recipients
(luna-define-method decrypt-region ((scheme pgg-scheme-pgp5)
start end)
- (let* ((pgg-pgp5-user-id pgg-default-user-id)
+ (let* ((pgg-pgp5-user-id (or pgg-pgp5-user-id pgg-default-user-id))
(passphrase
(pgg-read-passphrase
(format "PGP passphrase for %s: " pgg-pgp5-user-id)
(luna-define-method sign-region ((scheme pgg-scheme-pgp5)
start end &optional clearsign)
- (let* ((pgg-pgp5-user-id pgg-default-user-id)
+ (let* ((pgg-pgp5-user-id (or pgg-pgp5-user-id pgg-default-user-id))
(passphrase
(pgg-read-passphrase
(format "PGP passphrase for %s: " pgg-pgp5-user-id)
))
(luna-define-method insert-key ((scheme pgg-scheme-pgp5))
- (let* ((pgg-pgp5-user-id pgg-default-user-id)
+ (let* ((pgg-pgp5-user-id (or pgg-pgp5-user-id pgg-default-user-id))
(args
(list "+verbose=1" "+batchmode=1" "+language=us" "-x"
(concat "\"" pgg-pgp5-user-id "\""))))
(luna-define-method snarf-keys-region ((scheme pgg-scheme-pgp5)
start end)
- (let* ((pgg-pgp5-user-id pgg-default-user-id)
+ (let* ((pgg-pgp5-user-id (or pgg-pgp5-user-id pgg-default-user-id))
(basename (expand-file-name "pgg" temporary-file-directory))
(key-file (make-temp-name basename))
(args