From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs 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 13:36:17 -0500 Message-ID: References: <87oabg8f9d.fsf@gmail.com> <9s1t8cuuwt.fsf@fencepost.gnu.org> <8737sryzrj.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1455734237 22915 80.91.229.3 (17 Feb 2016 18:37:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 17 Feb 2016 18:37:17 +0000 (UTC) Cc: Daiki Ueno To: 22711@debbugs.gnu.org, nljlistbox2@gmail.com (N. Jackson) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Feb 17 19:37:08 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aW6yJ-0005Po-JQ for geb-bug-gnu-emacs@m.gmane.org; Wed, 17 Feb 2016 19:37:07 +0100 Original-Received: from localhost ([::1]:60523 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aW6yJ-0003PL-2Z for geb-bug-gnu-emacs@m.gmane.org; Wed, 17 Feb 2016 13:37:07 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57858) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aW6yF-0003P2-JX for bug-gnu-emacs@gnu.org; Wed, 17 Feb 2016 13:37:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aW6yE-0004mL-LB for bug-gnu-emacs@gnu.org; Wed, 17 Feb 2016 13:37:03 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:34549) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aW6yE-0004m3-IO for bug-gnu-emacs@gnu.org; Wed, 17 Feb 2016 13:37:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aW6yE-0004mz-BL for bug-gnu-emacs@gnu.org; Wed, 17 Feb 2016 13:37:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Glenn Morris Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 17 Feb 2016 18:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22711 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22711-submit@debbugs.gnu.org id=B22711.145573419018366 (code B ref 22711); Wed, 17 Feb 2016 18:37:02 +0000 Original-Received: (at 22711) by debbugs.gnu.org; 17 Feb 2016 18:36:30 +0000 Original-Received: from localhost ([127.0.0.1]:59909 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aW6xi-0004mA-4S for submit@debbugs.gnu.org; Wed, 17 Feb 2016 13:36:30 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:38576) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aW6xh-0004lz-6F for 22711@debbugs.gnu.org; Wed, 17 Feb 2016 13:36:29 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aW6xb-0004aq-2S for 22711@debbugs.gnu.org; Wed, 17 Feb 2016 13:36:24 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:58118) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aW6xX-0004a6-Ad; Wed, 17 Feb 2016 13:36:19 -0500 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1aW6xV-00012x-TF; Wed, 17 Feb 2016 13:36:18 -0500 X-Spook: Tucson asset Cloud Cyber attack Disaster medical X-Ran: >@}~$$vceyyB+ZD8$SRypay7XXFn{~[cPK\99Ph$WWxEWouG;bDY@#R"`|d7vsu"`-d^38 X-Hue: magenta X-Attribution: GM In-Reply-To: <8737sryzrj.fsf@gmail.com> (N. Jackson's message of "Wed, 17 Feb 2016 14:09:52 -0400") User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:113201 Archived-At: Adding pinentry author to cc. N. Jackson wrote: > At 17:56 -0500 on Tuesday 2016-02-16, Glenn Morris wrote: > >> See http://debbugs.gnu.org/20982 > > Thanks Glenn, > > I now vaguely remember reading that at the time, but lacked the > background to follow the discussion. Now I have a bit more context, but > it's still a bit opaque. > > === > > I tried following the instructions in > http://debbugs.gnu.org/cgi/bugreport.cgi?bug=20982#20. > > I have pinentry version "pinentry-gtk2 (pinentry) 0.9.6" and gpg2 version > "gpg (GnuPG) 2.1.9". > > I put the line > > allow-emacs-pinentry > > in ~/.gnupg/gpg-agent.conf (which file did not previously exist). > > Then: > > 0. emacs -Q & > > 1. M-x pinentry-start > > 3. C-x C-f myfile.gpg > > But I still got the same graphical dialog box for the password prompt. > > === > > In NEWS it says: > > ** pinentry.el allows GnuPG passphrase to be prompted through the > minibuffer instead of a graphical dialog, depending on whether the gpg > command is called from Emacs (i.e., INSIDE_EMACS environment variable > is set). This feature requires newer versions of GnuPG (2.1.5 or > later) and Pinentry (0.9.5 or later). > > This seems to be what I want, but if I am reading it correctly, it does > not work. > > It seems to say that if the INSIDE_EMACS environment variable is set, > the gpg password prompt will be displayed in the minibuffer. > > I even tried starting Emacs with > > export INSIDE_EMACS=t; emacs & > > so INSIDE_EMACS is unequivocally defined, but it doesn't help. Even if I do > > M-x pinentry-start > > before opening a .gpg file, I'm still being prompted with a graphical > dialog box. > > === > > There does not seem to be any user documentation for pinentry.el. (There > is no entry in the Emacs manual for "pinentry" and while there is a > pinentry info manual, it is for the 'real' (command line) pinentry, not > for pinentry.el.)