From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: nljlistbox2@gmail.com (N. Jackson) 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 17:20:43 -0400 Message-ID: <871t8bowyc.fsf@gmail.com> References: <87oabg8f9d.fsf@gmail.com> <9s1t8cuuwt.fsf@fencepost.gnu.org> <8737sryzrj.fsf@gmail.com> <87io1nupqc.fsf-ueno@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1455744089 13787 80.91.229.3 (17 Feb 2016 21:21:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 17 Feb 2016 21:21:29 +0000 (UTC) Cc: 22711@debbugs.gnu.org To: Daiki Ueno Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Feb 17 22:21:18 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 1aW9XC-0007eV-9b for geb-bug-gnu-emacs@m.gmane.org; Wed, 17 Feb 2016 22:21:18 +0100 Original-Received: from localhost ([::1]:33606 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aW9X8-0000H2-A5 for geb-bug-gnu-emacs@m.gmane.org; Wed, 17 Feb 2016 16:21:14 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43728) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aW9X1-00008W-5n for bug-gnu-emacs@gnu.org; Wed, 17 Feb 2016 16:21:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aW9Ww-0000NJ-5A for bug-gnu-emacs@gnu.org; Wed, 17 Feb 2016 16:21:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:34642) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aW9Wv-0000N4-RT for bug-gnu-emacs@gnu.org; Wed, 17 Feb 2016 16:21:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aW9Wv-0003Pe-LK for bug-gnu-emacs@gnu.org; Wed, 17 Feb 2016 16:21:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: nljlistbox2@gmail.com (N. Jackson) Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 17 Feb 2016 21:21:01 +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.145574405613099 (code B ref 22711); Wed, 17 Feb 2016 21:21:01 +0000 Original-Received: (at 22711) by debbugs.gnu.org; 17 Feb 2016 21:20:56 +0000 Original-Received: from localhost ([127.0.0.1]:60002 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aW9Wq-0003PD-Bf for submit@debbugs.gnu.org; Wed, 17 Feb 2016 16:20:56 -0500 Original-Received: from mail-ig0-f182.google.com ([209.85.213.182]:34230) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aW9Wp-0003Oy-Gs for 22711@debbugs.gnu.org; Wed, 17 Feb 2016 16:20:55 -0500 Original-Received: by mail-ig0-f182.google.com with SMTP id g6so68244026igt.1 for <22711@debbugs.gnu.org>; Wed, 17 Feb 2016 13:20:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=UIUabl1kUQOA4SvtKprSaaF3C81Qgi8MUYWIImglWpw=; b=vyDoN5y5sq1XfluP14GTqCGocAiMwBVI+gyZYeaCaps30itVktaT6a4iSvIM2k1PTe hobToIEq9GstnQJYO0CkMyOQBqeQykIjyB+USnrSH8MR0sIxSm1YqtL4jmT9qzhNQErq qF6A1MBpu05Q1msRFN7nSZ7iUDX/aVtVRx/tk72NsbCY3GonBC/aWBIx8woViSpnYDlL 7nd7OflekHilruuQ51L4JaFjVFZYSXidPmZicP73QRSpHmEzr+aCAJUxnjI036KBCXIz DHflSNWdhx1ARYpFZ4QUi34SFSjR1PP3lkXO22SJqDJZ2E4mAqnFFUUUudnvlect9MLn iQuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-type; bh=UIUabl1kUQOA4SvtKprSaaF3C81Qgi8MUYWIImglWpw=; b=Tfx+OYMICNflhnyVUp+xO03+dFc4zsIVdyI/J6g1IUwNm8LcDeKz5NMXLYv1kA6tOz M1rWGgxrFuX5KsidliLo/+SAMphPpfth14697SEaQZ6NpWjrn8MiHLrsoajKHJaeSeF+ FxqxZlQYPbCI7jcjsX0peTI+7nhitzhPHx51kPQbuy34f08hElrYOIoQX1shrDngSesh oFyClNTkKpW9IuCkGLYVKaMswJxvWR8ZMbNe+ctqdzyT5joGm3ryKK0BheocptYFh5rB ijXcgLproQxEGz8rJAbT0xiE/NdkVPGTreQHDVuL7nl/0m60kmWX+IpuFuHiN0FwrWI6 cGJQ== X-Gm-Message-State: AG10YORRwvwu4rhP/wEAdAPk06MaqResDYlWT3ZdCYisEX1ZrHwWYqtu4xWbul5+i3zcuA== X-Received: by 10.50.87.7 with SMTP id t7mr27507782igz.65.1455744049919; Wed, 17 Feb 2016 13:20:49 -0800 (PST) Original-Received: from moondust.nodomain.none ([142.227.16.2]) by smtp.gmail.com with ESMTPSA id l94sm2003841iod.13.2016.02.17.13.20.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 17 Feb 2016 13:20:44 -0800 (PST) In-Reply-To: <87io1nupqc.fsf-ueno@gnu.org> (Daiki Ueno's message of "Thu, 18 Feb 2016 04:00:11 +0900") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.91 (gnu/linux) 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:113210 Archived-At: 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.