On Thu, 22 Oct 2020 09:23:35 +0100 Colin Baxter wrote: >>>>>> Pankaj Jangid writes: > > > Steps: 1. M-x epa-list-keys RET ⇒ (lists keys) 2. q 3. M-x > > epa-list-keys RET ⇒ Wrong type argument: interger-or-marker-p, nil > > Works for me using emacs-28.0.50 and emacs-27.1. It works in emacs-27 but AFAICT it cannot work with emacs -Q from master. If you did use -Q with emacs-28, did you perhaps kill the buffer is step 2 instead of typing `q'? Here's a patch for master, but someone who knows epa.el well should verify it: