unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: nljlistbox2@gmail.com (N. Jackson)
To: Daiki Ueno <ueno@gnu.org>
Cc: 22711@debbugs.gnu.org
Subject: bug#22711: 25.0.91; prompt for gpg password is displayed in a dialog box rather than in the minibuffer
Date: Wed, 17 Feb 2016 17:20:43 -0400	[thread overview]
Message-ID: <871t8bowyc.fsf@gmail.com> (raw)
In-Reply-To: <87io1nupqc.fsf-ueno@gnu.org> (Daiki Ueno's message of "Thu, 18 Feb 2016 04:00:11 +0900")

At 04:00 +0900 on Thursday 2016-02-18, Daiki Ueno wrote:

> If you do this for the first time on the same session, try restarting
> gpg-agent with:
>
>   gpgconf --reload gpg-agent
>

Thanks Daiki, now it works! (Aside from the uninformative prompt -- see
below.)

So it seems that all that is required to have the gpg password prompt
appear in the minibuffer instead of in a graphical dialog box, is for
the user to add

    allow-emacs-pinentry

to a line in ~/.gnupg/gpg-agent.conf (and to restart gpg-agent, if it is
already running, with

    gpgconf --reload gpg-agent

so that it reads the new setting). Nothing else is required; everything
in Emacs works out of the box.

Perhaps this information could be included in the NEWS entry for
pinentry.el? (And an entry in the manual might be nice too, although I'm
not sure where it would live.)


The password prompt, however, fails to identify the file for which the
password is being requested. In Emacs 24 and 25.0.90, the prompt was,
for example,

    Passphrase for symmetric encryption for /home/nlj/.authinfo.gpg:

Now there is a small buffer displaying

    Enter passphrase

followed by a few blank lines, and, then in the minibuffer, the prompt

    Passphrase:

Could the prompt in the minibuffer (or the text in the little buffer)
not show the name of the file? In fact, what purpose does the little
buffer serve? It seems to clutter up the interface and not add anything
useful. Or am I missing something there?

For completeness, although I do not expect to use it myself, I think
that the prompt in the graphical dialog box would also be improved by
stating the file name, and in this case it would also be useful if it
identified Emacs as being the source of the prompt.

Thanks.

N.





  reply	other threads:[~2016-02-17 21:20 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-16 22:25 bug#22711: 25.0.91; prompt for gpg password is displayed in a dialog box rather than in the minibuffer N. Jackson
2016-02-16 22:56 ` Glenn Morris
2016-02-17 18:09   ` N. Jackson
2016-02-17 18:36     ` Glenn Morris
2016-02-17 19:00       ` Daiki Ueno
2016-02-17 21:20         ` N. Jackson [this message]
2016-02-18  8:01           ` Daiki Ueno

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=871t8bowyc.fsf@gmail.com \
    --to=nljlistbox2@gmail.com \
    --cc=22711@debbugs.gnu.org \
    --cc=ueno@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).