* mml2015.el (mml2015-epg-encrypt): Removed backward compatibility for
authorDaiki Ueno <ueno@unixuser.org>
Mon, 13 Nov 2006 01:48:55 +0000 (01:48 +0000)
committerDaiki Ueno <ueno@unixuser.org>
Mon, 13 Nov 2006 01:48:55 +0000 (01:48 +0000)
EasyPG (< 0.0.6).

lisp/ChangeLog
lisp/mml2015.el

index cda8089..778c067 100644 (file)
@@ -1,3 +1,8 @@
+2006-11-13  Daiki Ueno  <ueno@unixuser.org>
+
+       * mml2015.el (mml2015-epg-encrypt): Removed backward compatibility for
+       EasyPG (< 0.0.6).
+
 2006-11-10  Katsumi Yamaoka  <yamaoka@jpl.org>
 
        * nntp.el (nntp-authinfo-force): New variable.
index e4de5fd..0e55012 100644 (file)
@@ -1168,25 +1168,20 @@ If no one is selected, default secret key is used.  "
 (defun mml2015-epg-encrypt (cont &optional sign)
   (let ((inhibit-redisplay t)
        (context (epg-make-context))
-       (recipients
-        (if (message-options-get 'message-recipients)
-            (split-string
-             (message-options-get 'message-recipients)
-             "[ \f\t\n\r\v,]+")))
-       cipher signers config
+       (config (epg-configuration))
+       (recipients (split-string
+                    (or (message-options-get 'message-recipients)
+                        (message-options-set 'message-recipients
+                                             (read-string "Recipients: ")))
+                    "[ \f\t\n\r\v,]+"))
+       cipher signers
        (boundary (mml-compute-boundary cont)))
-    ;; We should remove this check if epg-0.0.6 is released.
-    (if (and (condition-case nil
-                (require 'epg-config)
-              (error))
-            (functionp #'epg-expand-group))
-       (setq config (epg-configuration)
-             recipients
-             (apply #'nconc
-                    (mapcar (lambda (recipient)
+    (setq recipients (apply #'nconc
+                           (mapcar
+                            (lambda (recipient)
                               (or (epg-expand-group config recipient)
                                   (list recipient)))
-                            recipients))))
+                            recipients)))
     (if mml2015-verbose
        (setq recipients
              (epa-select-keys context "Select recipients for encryption.