* epa.el (epa-list-keys): If prefix-arg is specified, use "OpenPGP" as
authorueno <ueno>
Tue, 19 Dec 2006 09:04:02 +0000 (09:04 +0000)
committerueno <ueno>
Tue, 19 Dec 2006 09:04:02 +0000 (09:04 +0000)
the default protocol.

ChangeLog
epa.el

index 6ec0cba..270c7db 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,6 +4,8 @@
 
        * epa.el (epa-sign-region): --armor & --textmode.
        (epa-encrypt-region): Ditto.
+       (epa-list-keys): If prefix-arg is specified, use "OpenPGP" as the
+       default protocol.
        (epa-import-keys-region): New command.
        (epa-insert-keys): New command.
        (epa--insert-keys): Renamed from epa-insert-keys.
diff --git a/epa.el b/epa.el
index b9c55d2..c9ed3c6 100644 (file)
--- a/epa.el
+++ b/epa.el
@@ -330,10 +330,10 @@ If ARG is non-nil, mark the current line."
                                (if epa-list-keys-arguments
                                    (car epa-list-keys-arguments)))))
         (list (if (equal name "") nil name)
-              (y-or-n-p "Secret keys? ")
-              (intern (completing-read "Protocol? "
+              (y-or-n-p "Secret keys?")
+              (intern (completing-read "Protocol? (default OpenPGP) "
                                        '(("OpenPGP") ("CMS"))
-                                       nil t))))
+                                       nil t nil nil "OpenPGP"))))
      (or epa-list-keys-arguments (list nil nil nil))))
   (unless (and epa-keys-buffer
               (buffer-live-p epa-keys-buffer))