GNU bug report logs -
#44134
28.0.50; epa-list-keys failing with ‘wrong type argument: interger-or-marker-p, nil’
Previous Next
Reported by: Pankaj Jangid <pankaj.jangid <at> codeisgreat.com>
Date: Thu, 22 Oct 2020 07:30:02 UTC
Severity: normal
Tags: fixed
Found in version 28.0.50
Fixed in version 28.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #23 received at 44134 <at> debbugs.gnu.org (full text, mbox):
On Thu, 22 Oct 2020 15:21:54 +0100 Colin Baxter <m43cap <at> yandex.com> wrote:
>>>>>> Stephen Berman <stephen.berman <at> gmx.net> writes:
[...]
> >> Do you want me to apply your patch to see if it makes any
> >> difference?
>
> > Yes, please do.
>
> Ok, patch applied to my setup and it appears to work.
Thanks for testing.
> emacs -Q <RET>
> M-x epa-list-keys <RET> --> keys listed
> q
> M-x epa-list-keys <RET> --> keys listed
> repeated 2 more times> --> same outcome
> repeated 2 more times using epa-list-secret-keys --> keys listed
>
> Would it be possible to use 'q' to kill the keys-buffer rather than hide
> it? That way, the buffer will not display an old duplicate listing.
Well, since `q' in epa-key-list-mode is bound to epa-exit-buffer, which
funcalls epa-exit-buffer-function, which is set by default to
quit-window, and the latter kills the buffer if called with a prefix
argument, you could just type `C-u q' instead of `q'. Or if you want
`q' by itself to kill the buffer, putting either of the following sexps
into your init file should do the trick.
(with-eval-after-load "epa"
(setq epa-exit-buffer-function
(lambda () (interactive) (quit-window t))))
(with-eval-after-load "epa"
(define-key epa-key-list-mode-map "q"
(lambda () (interactive) (quit-window t))))
The latter affects only epa-key-list-mode, while the former has wider
scope, since epa-exit-buffer-function is used in several places in
epa.el.
Steve Berman
This bug report was last modified 4 years and 183 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.