* epa.el (epa-select-keys): Simplified; don't select the first
matching key.
+ (epa-key-list-mode-map): Bind revert-buffer instead of
+ epa-list-keys.
+ (epa-key-list-mode): Set revert-buffer-function to epa--revert-buffer.
+ (epa--revert-buffer): New function.
* epg.el (epg--list-keys-1): Accept a list of strings as NAME
argument.
(define-key keymap "r" 'epa-delete-keys)
(define-key keymap "i" 'epa-import-keys)
(define-key keymap "o" 'epa-export-keys)
+ (define-key keymap "g" 'revert-buffer)
(define-key keymap "n" 'next-line)
(define-key keymap "p" 'previous-line)
(define-key keymap " " 'scroll-up)
;; if buffer-file-name is not set.
(font-lock-set-defaults)
(make-local-variable 'epa-exit-buffer-function)
+ (make-local-variable 'revert-buffer-function)
+ (setq revert-buffer-function 'epa--revert-buffer)
(run-hooks 'epa-key-list-mode-hook))
(defun epa-key-mode ()
(list nil)))
(epa--list-keys name t))
+(defun epa--revert-buffer ()
+ (epa--list-keys epa-list-keys-arguments))
+
(defun epa--marked-keys ()
(or (save-excursion
(set-buffer epa-keys-buffer)