* epa.el (epa-select-keys): Simplified; don't select the first
authorueno <ueno>
Sat, 24 Mar 2007 09:02:33 +0000 (09:02 +0000)
committerueno <ueno>
Sat, 24 Mar 2007 09:02:33 +0000 (09:02 +0000)
matching key.

ChangeLog
epa.el

index f0a6c93..a11bcfe 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2007-03-24  Daiki Ueno  <ueno@unixuser.org>
 
+       * epa.el (epa-select-keys): Simplified; don't select the first
+       matching key.
+
        * epg.el (epg--list-keys-1): Accept a list of strings as NAME
        argument.
        (epg-list-keys): Ditto.
diff --git a/epa.el b/epa.el
index 0967286..fe46903 100644 (file)
--- a/epa.el
+++ b/epa.el
@@ -454,19 +454,7 @@ If SECRET is non-nil, list secret keys instead of public keys."
                      "Click here or \\[exit-recursive-edit] to finish")
                     "OK")
       (insert "\n\n")
-      (if names
-         (while names
-           (epa--insert-keys context (car names) secret)
-           (if (get-text-property (point) 'epa-list-keys)
-               (epa-mark))
-           (goto-char (point-max))
-           (setq names (cdr names)))
-       (if secret
-           (progn
-             (epa--insert-keys context nil secret)
-             (if (get-text-property (point) 'epa-list-keys)
-                 (epa-mark)))
-         (epa--insert-keys context nil nil)))
+      (epa--insert-keys context names secret)
       (widget-setup)
       (set-keymap-parent (current-local-map) widget-keymap)
       (setq epa-exit-buffer-function #'abort-recursive-edit)