]> git.eshelyaron.com Git - emacs.git/commitdiff
EasyPG: Fix bug with C-x C-s after M-x epa-file-select-keys.
authorMichael Olson <mwolson@gnu.org>
Sun, 16 Mar 2008 04:04:15 +0000 (04:04 +0000)
committerMichael Olson <mwolson@gnu.org>
Sun, 16 Mar 2008 04:04:15 +0000 (04:04 +0000)
lisp/epa-file.el

index e3c4a83deb8689d37ae061a1a7f76fe2f23904fd..558048403ce8b3b0a77533bee57c95996d5361c1 100644 (file)
@@ -285,10 +285,13 @@ If no one is selected, symmetric encryption will be performed.  "
   (interactive)
   (make-local-variable 'epa-file-encrypt-to)
   (setq epa-file-encrypt-to
+       (mapcar
+        (lambda (key)
+          (epg-sub-key-id (car (epg-key-sub-key-list key))))
        (epa-select-keys
         (epg-make-context)
         "Select recipents for encryption.
-If no one is selected, symmetric encryption will be performed.  ")))
+If no one is selected, symmetric encryption will be performed.  "))))
 
 ;;;###autoload
 (defun epa-file-enable ()