Package: emacs25
Version: 25.1+1-4+deb9u1

(I've no idea if this is a bug in Emacs or GnuPG, so the choice of
package is somewhat arbitrary. Apologies in advance if I'm pointing the
wrong way.)

I am having huge difficulty entering passphrases for GPG-encrypted files
via Emacs. The behaviors I've seen are:

1. Trying to open a passphrase-protected file (with C-x C-f), an
ASCII-art popup window appears and invites me to enter a passphrase. But
keystrokes don’t always register, making it hard to enter it. I don’t
know where the lost keystrokes are going (concerning since they are part
of a passphrase).

2. Same as above, but (on a different system) only intermittently.

3. If I C-g out of the above then the popup initially disappears but
further keystrokes appear as *, sometimes (but not always) in the middle
where the popup was. In fact this behavior seems to persist beyond
terminating Emacs; I guess something has opened its terminal and is
refusing to let go.

4. Attempt to open a file as above, but (accidentally or deliberately)
enter a wrong passphrase. On a subsequent attempt opening the file jumps
straight to the error about a wrong passphrase, something apparently
having remembered the wrong passphrase (killing gpg-agent resets it).

5. Sometimes Emacs just hangs instead of displaying the popup. (C-g
escapes.)

Configuration:

This is all on Debian stretch (i.e. stable at the time of writing) with
Emacs 25. Specific versions below.

(Mostly) no X11 display. The X11 passphrase entry widget seems to be
more reliable; I’ve only observed issue #5 when using X11.

I’ve duplicated emacs and gnupg configuration between machines without
completely reliably replicating the behavior. i.e. I’ve not figured out
what configuration difference leads to the behavioral difference between
the two machines (if indeed it’s anything under my control at all rather
than e.g. a timing difference).

Moving aside Emacs and GnuPG configuration (i.e. ~/.emacs and ~/.gnupg)
still produces the same behaviors. So I don’t think this is due to my
configuration (or at least not to easily findable bits of it - pointers
to other sources of configuration to experiment with welcome).

When not moved aside, as far as I can see all the Emacs configuration
I’d expect to be relevant (things matching ‘gpg’, ‘pgp’ or ‘gpa’) is
unmodified.

ii  emacs25        25.1+1-4+deb9u1 amd64        GNU Emacs editor (with
GTK+ GUI support)
ii  gnupg          2.1.18-8~deb9u1 amd64        GNU privacy guard - a
free PGP replacement

ttfn/rjk

Reply via email to