From: ueno Date: Tue, 4 Jul 2006 02:49:44 +0000 (+0000) Subject: * pgg-epg.el (pgg-epg-sign-region): Select the signing key matched X-Git-Tag: epg-0_0_4~23 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f4085b2fb3fa85f838d6136d893a03bfc6b2754f;p=elisp%2Fepg.git * pgg-epg.el (pgg-epg-sign-region): Select the signing key matched with pgg-default-user-id. --- diff --git a/ChangeLog b/ChangeLog index e1a2aab..2ba6ab3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-07-04 Daiki Ueno + + * pgg-epg.el (pgg-epg-sign-region): Select the signing key matched + with pgg-default-user-id. + 2006-07-01 Daiki Ueno * epa.el (epa-select-keys): If SECRET is specified, select a diff --git a/pgg-epg.el b/pgg-epg.el index 27b6e42..224535e 100644 --- a/pgg-epg.el +++ b/pgg-epg.el @@ -152,6 +152,9 @@ passphrase cache or user." (epg-context-set-armor context t) (epg-context-set-textmode context pgg-text-mode) (epg-context-set-passphrase-callback context #'pgg-epg-passphrase-callback) + (epg-context-set-signers + context + (list (car (epg-list-keys context pgg-default-user-id t)))) (save-excursion (set-buffer (get-buffer-create pgg-output-buffer)) (erase-buffer)