X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=epa.el;h=aae23130c0b7509dfdbd1c573fbdc823859316d5;hb=f4085b2fb3fa85f838d6136d893a03bfc6b2754f;hp=2ab75571922f4d265e89ac4bda4aa167f9779a74;hpb=579605e671e4c67bcba7974f59ca4eea069a7696;p=elisp%2Fepg.git diff --git a/epa.el b/epa.el index 2ab7557..aae2313 100644 --- a/epa.el +++ b/epa.el @@ -388,7 +388,13 @@ If SECRET is non-nil, list secret keys instead of public keys." (epa-mark) (goto-char (point-max)) (setq names (cdr names))) - (epa-insert-keys context nil secret)) + (if secret + (progn + (setq point (point)) + (epa-insert-keys context nil secret) + (goto-char point) + (epa-mark)) + (epa-insert-keys context nil nil))) (epa-keys-mode) (setq epa-exit-buffer-function #'abort-recursive-edit) (goto-char (point-min)) @@ -592,7 +598,7 @@ If no one is selected, default secret key is used. " "Encrypt FILE for RECIPIENTS." (interactive (list (expand-file-name (read-file-name "File: ")) - (epa-select-keys (epg-make-context) "Select recipents for encryption. + (epa-select-keys (epg-make-context) "Select recipients for encryption. If no one is selected, symmetric encryption will be performed. "))) (let ((cipher (concat file (if epa-armor ".asc" ".gpg"))) (context (epg-make-context))) @@ -728,7 +734,7 @@ If no one is selected, default secret key is used. " Don't use this command in Lisp programs!" (interactive (list (region-beginning) (region-end) - (epa-select-keys (epg-make-context) "Select recipents for encryption. + (epa-select-keys (epg-make-context) "Select recipients for encryption. If no one is selected, symmetric encryption will be performed. "))) (save-excursion (let ((context (epg-make-context))