Fixed.
[elisp/epg.git] / epa-file.el
index 961897e..d4c9fb2 100644 (file)
               context
               (if (stringp start)
                   (encode-coding-string start coding-system)
-                (encode-coding-string (buffer-string start end)
+                (encode-coding-string (buffer-substring start end)
                                       coding-system))
-              (mapcar (lambda (key)
-                        (epg-sub-key-id (car (epg-key-sub-key-list key))))
-                      (unless (assoc file epa-file-passphrase-alist)
+              (unless (assoc file epa-file-passphrase-alist)
                         (epa-select-keys
                    "Select recipents for encryption.
-If no one is selected, symmetric encryption will be performed.  ")))))
+If no one is selected, symmetric encryption will be performed.  "))))
       (error
        (if (setq entry (assoc file epa-file-passphrase-alist))
           (setcdr entry nil))