+2012-04-04 Daiki Ueno <ueno@unixuser.org>
+
+ * epa.el (epa--select-keys): Bind C-c C-c to finish the key
+ selection (Bug#11159).
+ (epa-insert-keys): Inform that the default public key will be
+ exported if no key is selected.
+
2012-04-04 Richard Stallman <rms@gnu.org>
* mail/emacsbug.el (report-emacs-bug): Bind inhibit-read-only.
(setq epa-keys-buffer (generate-new-buffer "*Keys*")))
(with-current-buffer epa-keys-buffer
(epa-key-list-mode)
+ ;; C-c C-c is the usual way to finish the selection (bug#11159).
+ (define-key (current-local-map) "\C-c\C-c" 'exit-recursive-edit)
(let ((inhibit-read-only t)
buffer-read-only)
(erase-buffer)
"Insert selected KEYS after the point."
(interactive
(list (epa-select-keys (epg-make-context epa-protocol)
- "Select keys to export. ")))
+ "Select keys to export.
+If no one is selected, default public key is exported. ")))
(let ((context (epg-make-context epa-protocol)))
;;(epg-context-set-armor context epa-armor)
(epg-context-set-armor context t)