(epa-file-select-keys): New command.
authorueno <ueno>
Sat, 21 Apr 2007 20:20:48 +0000 (20:20 +0000)
committerueno <ueno>
Sat, 21 Apr 2007 20:20:48 +0000 (20:20 +0000)
ChangeLog
epa-file.el

index 6b6aee0..fbf959a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2007-04-22  Daiki Ueno  <ueno@unixuser.org>
+
+       * epa-file.el (epa-file-select-keys): New command.
+
 2007-04-21  Daiki Ueno  <ueno@unixuser.org>
 
        * epa-file.el (epa-file-write-region): Ask recipients only the
index 47b17f5..9828b65 100644 (file)
@@ -264,6 +264,16 @@ If no one is selected, symmetric encryption will be performed.  "
           epa-file-inhibit-auto-save)
       (auto-save-mode 0)))
 
+(defun epa-file-select-keys ()
+  "Select recipients for encryption."
+  (interactive)
+  (make-local-variable 'epa-file-encrypt-to)
+  (setq epa-file-encrypt-to
+       (epa-select-keys
+        context
+        "Select recipents for encryption.
+If no one is selected, symmetric encryption will be performed.  ")))
+
 ;;;###autoload
 (defun epa-file-enable ()
   (interactive)