Open davidpiano opened 4 years ago
A work-around good enough for my personal situation:
Edit .emacs
by adding the following:
(setq epa-pinentry-mode 'loopback)
Or, for Emacs 27:
(setq epg-pinentry-mode 'loopback)
AND
Edit .gnupg/gpg-agent.conf
(create it if necessary) by adding the following:
allow-emacs-pinentry
Obviously, this avoids the problem rather than fixing it.
This issue/PR has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Problem description I can't be certain where this problem originates, i.e. whether it's a Termux problem, an emacs problem, or a gpg problem. When I try to use (terminal) emacs to open
~/.authinfo.gpg
for editing, it's difficult to enter the password that's required for access to that file. It appears that the password dialog box isn't catching all keystrokes, because*
on the password line,cancel
andok
buttons, andEDIT: In trying to test further, I changed a
gpg-agent
setting that I thought might help by presenting a different dialog. It didn't help, so when the same old dialog appeared in front of emacs, I pressedcontrol-g
hoping to cancel it. The actual effect, however, was apparently to send some kind of "suspend" message to the dialog - such that when I quit Emacs and was returned to zsh, the password entry field had "invaded" the terminal emulator itself, causing many keystrokes (but not all!) to appear as*
and to cause incorrect output. Seeing that, I used my phone's drop-down notification menu to kill the Termux session. This odd behavior makes me wonder whether thepinentry
application is actually at fault.If I watch carefully to make sure every character of my password DOES produce a
*
on the password line, repeating each character several times if necessary (sometimes once is enough, sometimes twice or three times; it's unpredictable) to achieve that result, then my password is accepted and the file opens - but after it opens, emacs gives unexpected messages, as if I had entered some invalid emacs commands.I have tried the same thing using different keyboard apps (Samsung default, Gboard, Hacker's Keyboard, NextApp keyboard) - all have the same effect.
Steps to reproduce
gpg
in your Termux system so that gpg is in a working state, and create a file~/.authinfo.gpg
or similar password-protected fileemacs -q ~/.authinfo.gpg
Expected behavior File should open successfully without incident when the correct password is entered in the dialog box
Additional information