From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Teemu Likonen Newsgroups: gmane.emacs.help Subject: Re: emacs interface with gpg-agent stopped working (or stopped caching passphrase) Date: Sat, 03 Sep 2016 17:52:39 +0300 Message-ID: <87eg51c9xk.fsf@iki.fi> References: <7df56913-7dfd-4789-a984-48b34f576c2f@googlegroups.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Trace: blaine.gmane.org 1472916000 9392 195.159.176.226 (3 Sep 2016 15:20:00 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 3 Sep 2016 15:20:00 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) Cc: help-gnu-emacs@gnu.org To: derkire@gmail.com Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Sep 03 17:19:56 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bgCjX-0001Qj-Ka for geh-help-gnu-emacs@m.gmane.org; Sat, 03 Sep 2016 17:19:51 +0200 Original-Received: from localhost ([::1]:46818 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bgCjV-00073r-7m for geh-help-gnu-emacs@m.gmane.org; Sat, 03 Sep 2016 11:19:49 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40143) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bgCJZ-00015W-7r for help-gnu-emacs@gnu.org; Sat, 03 Sep 2016 10:53:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bgCJV-0006rm-3C for help-gnu-emacs@gnu.org; Sat, 03 Sep 2016 10:53:00 -0400 Original-Received: from mta-out1.inet.fi ([62.71.2.230]:56168 helo=johanna2.inet.fi) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bgCJU-0006rU-Od for help-gnu-emacs@gnu.org; Sat, 03 Sep 2016 10:52:57 -0400 RazorGate-KAS: Status: not_detected RazorGate-KAS: Rate: 0 RazorGate-KAS: Envelope from: RazorGate-KAS: Version: 5.5.3 RazorGate-KAS: LuaCore: 80 2014-11-10_18-01-23 260f8afb9361da3c7edfd3a8e3a4ca908191ad29 RazorGate-KAS: Lua profiles 69136 [Nov 12 2014] RazorGate-KAS: Method: none Original-Received: from mithlond.arda (84.251.143.106) by johanna2.inet.fi (9.0.002.03-2-gbe5d057) id 57C7E21E00421630; Sat, 3 Sep 2016 17:52:44 +0300 Original-Received: from dtw by mithlond.arda with local (Exim 4.84_2) (envelope-from ) id 1bgCJH-0000mR-Lc; Sat, 03 Sep 2016 17:52:43 +0300 In-Reply-To: <7df56913-7dfd-4789-a984-48b34f576c2f@googlegroups.com> (derkire@gmail.com's message of "Fri, 2 Sep 2016 23:32:11 -0700 (PDT)") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 62.71.2.230 X-Mailman-Approved-At: Sat, 03 Sep 2016 11:19:10 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:111242 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable derkire@gmail.com [2016-09-02 23:32:11-07] wrote: > Expected (old) behavior: When opening (find-file) files in emacs, > emacs contacts the gpg-agent, and a GUI window is popped to enter the > passphrase. This is then enough to decrypt ALL additional .gpg files > opened by emacs for the next 5 minutes. > > Actual (new) behavior: emacs instead asks for passphrase in the > minibuffer (not GUI popup!), and the file will decrypt, BUT the PP has > to be entered each time a new file is opened. That is, no more > 5min/300sec window of caching. I interpret this to mean that the > interface between emacs and the gpg-agent is not functioning > correctly. It looks to me that your Emacs is now using old GPG 1.4 and not GPG 2.x version. Emacs has some magic code to choose which one to use but the logic is unknown to me. There is also variable epg-gpg-program. GPG 1.4 will connect to agent if ~/.gnupg/gpg.conf file has this line: use-agent GPG 2.x don't need that option because they always connect to the agent. =2D-=20 /// Teemu Likonen - .-.. // // PGP: 4E10 55DC 84E9 DFF6 13D7 8557 719D 69D3 2453 9450 /// --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJXyuO3AAoJEHGdadMkU5RQuesP/A0C3AZ5L1S2+Iz8IVMkcofJ vUeroGORoIWiZbgsXInT0F7HUScdJ51ODNgyYHWSA06AVj6uHtDIjBAFmcmCGjQx CGbWpIbmWWlPSqYslgzHwpp7liwUx06JBVXxBobLRP8gKD3Sd7TkZ4xsLojWjpvy D7hI0DQ4LvSvCQtlV0oyb6WPvAORm7tKKB6jWYKObxqug2XjqUmNGk6xqIHdNDO9 5DcCZUt3fAJn5rmSCDHQSH77j7nOmn3uo6xDZAygFMRdLUkRxsoh8ksT7aKowKyd l0psFlJwOsPzBqpVQBY3LDQn6M1qrfgECt+VkavnzZQ15bc/VHnL6IVhNyWG0K5a wpB6ClcuAhY+bnkpDayCweMbW1dt4CDE4rQshmX8AM841Ak5rFLF+hVcT2AjqoiE CNpf2bMnOU3480Lc3yFoA+K/qukNmxkFcGKKzdizCgYgXfuWSlWi2wlTqYEXD2m+ WeEtVox+gMK0sQkGYxg/w1Oimz/4OzpunWsSFcMn083SlLWWVNYLaAUufReXF09N 5ZSot2gwM8FLX69yWhXHzTwvPhhV5bv6zhSjcn3B66S+FwZYOby2iW2Ebjcf1ZOL UL2ikc+rinXCDtVvzEgMbDX7lGw+7Ka9YKWsjxBpr9t7k/yY4zn6vtgajhJiUBWa 4j5WzCUw1GhQwT9/7URI =WTAY -----END PGP SIGNATURE----- --=-=-=--