GNU bug report logs -
#78310
30.1; icomplete-mode interferes with epg's loopback pinentry mode when using encypted authinfo
Previous Next
Full log
View this message in rfc822 format
Ping! João, any comments?
> Cc: 78310 <at> debbugs.gnu.org
> Date: Sat, 10 May 2025 13:49:06 +0300
> From: Eli Zaretskii <eliz <at> gnu.org>
>
> > Date: Wed, 07 May 2025 23:15:56 +0100
> > From: "Oliver J. Mead" via "Bug reports for GNU Emacs,
> > the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
> >
> >
> > ~/.authinfo.gpg exists, and corresponding keys exist with gnupg to
> > decrypt it, the relevant private key does have a password.
> >
> > start emacs with 'emacs -Q', execute:
> > ```
> > (set 'epg-pinentry-mode 'loopback)
> > (icomplete-mode 1)
> > ```
> > Type 'C-x C-f /ssh:'.
> > In the minibuffer appears the prompt 'Password for [GPG KEY]: '.
> >
> > At this point the expected behaviour is for this epg prompt to accept
> > the user's password input, decrypt the authinfo file and carry on with
> > the TRAMP path entry.
> >
> > Attempting to input the password results in:
> > - Each character entered switches the minibuffer between displaying the
> > epg prompt and displaying the 'find-file' prompt.
> > - Each character entered when the 'find-file' prompt is visible is added
> > to that prompt's input.
> > - No characters appear to be added to the epg prompt - no '*'s appear
> > before the cursor.
> > For example, if the user types '1234567890abcdefg' then the 'find-file'
> > prompt will be displayed, with the text '~//ssh:24680bdf'
> > entered. That's every other character of a password in plain text on the
> > screen and nothing useful going on.
> >
> > I have found a work-around for this issue:
> > Type any character into the epg prompt when it appears (this character
> > will neither end up in the epg prompt nor the 'find-file' prompt), then TAB when
> > the 'find-file' prompt returns. The epg prompt reappears and the
> > password can be typed as normal from this point.
>
> João, any comments or suggestions?
>
>
>
>
This bug report was last modified 21 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.