From: ueno Date: Sun, 28 May 2006 07:24:21 +0000 (+0000) Subject: * mime-pgp.el (mime-add-application/pgp-keys): Don't use a temp buffer. X-Git-Tag: emiko-1_14_1-epg-0_0_2 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=af9c6767de8690417a6f50f9d5c0d8d701c34e8c;p=elisp%2Fsemi.git * mime-pgp.el (mime-add-application/pgp-keys): Don't use a temp buffer. --- diff --git a/ChangeLog b/ChangeLog index 10197ac..3ce6039 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2006-05-28 Daiki Ueno + + * mime-pgp.el (mime-add-application/pgp-keys): Don't use a temp buffer. + 2006-05-26 Daiki Ueno * mime-pgp.el (mime-view-application/pgp): Use diff --git a/mime-pgp.el b/mime-pgp.el index 739136e..aafe5fd 100644 --- a/mime-pgp.el +++ b/mime-pgp.el @@ -182,13 +182,8 @@ ;;; draft-ietf-openpgp-mime-02.txt (OpenPGP/MIME). (defun mime-add-application/pgp-keys (entity situation) - (with-temp-buffer - (mime-insert-entity-content entity) - (mime-decode-region (point-min) (point-max) - (cdr (assq 'encoding situation))) - (epg-import-keys-from-string (epg-make-context) - (buffer-substring (point-min)(point-max))) - (epa-list-keys))) + (epg-import-keys-from-string (epg-make-context) + (mime-entity-content entity))) ;;; @ Internal method for application/pkcs7-mime