From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#15552: 24.3.50; epa-file-cache-passphrase-for-symmetric-encryption not respected with GnuPG 2.x Date: Thu, 10 Oct 2013 10:31:02 -0400 Message-ID: References: <87r4bx0xsk.fsf@flea.lifelogs.com> <87fvscwswx.fsf-ueno-ueno@gnu.org> <87hacsutvp.fsf-ueno@gnu.org> <87fvsbctxe.fsf-ueno@gnu.org> <87pprds1fw.fsf@flea.lifelogs.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1381415542 19668 80.91.229.3 (10 Oct 2013 14:32:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 10 Oct 2013 14:32:22 +0000 (UTC) To: 15552@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 10 16:32:25 2013 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 1VUHHt-0006yh-1f for geb-bug-gnu-emacs@m.gmane.org; Thu, 10 Oct 2013 16:32:25 +0200 Original-Received: from localhost ([::1]:48417 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VUHHs-0004M7-Jb for geb-bug-gnu-emacs@m.gmane.org; Thu, 10 Oct 2013 10:32:24 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43737) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VUHHg-0004LX-1N for bug-gnu-emacs@gnu.org; Thu, 10 Oct 2013 10:32:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VUHHW-00034Z-Kd for bug-gnu-emacs@gnu.org; Thu, 10 Oct 2013 10:32:11 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:60813) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VUHHW-00034V-HJ for bug-gnu-emacs@gnu.org; Thu, 10 Oct 2013 10:32:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VUHHW-0007Mx-6m for bug-gnu-emacs@gnu.org; Thu, 10 Oct 2013 10:32:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 10 Oct 2013 14:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15552 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.138141548928279 (code B ref -1); Thu, 10 Oct 2013 14:32:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 10 Oct 2013 14:31:29 +0000 Original-Received: from localhost ([127.0.0.1]:40873 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VUHGz-0007M3-6X for submit@debbugs.gnu.org; Thu, 10 Oct 2013 10:31:29 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:41783) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VUHGy-0007Lu-CF for submit@debbugs.gnu.org; Thu, 10 Oct 2013 10:31:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VUHGo-0002kF-PL for submit@debbugs.gnu.org; Thu, 10 Oct 2013 10:31:28 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:34411) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VUHGo-0002kB-M5 for submit@debbugs.gnu.org; Thu, 10 Oct 2013 10:31:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43460) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VUHGh-0004IK-1J for bug-gnu-emacs@gnu.org; Thu, 10 Oct 2013 10:31:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VUHGZ-0002cS-Nt for bug-gnu-emacs@gnu.org; Thu, 10 Oct 2013 10:31:10 -0400 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:50825) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VUHGZ-0002at-IQ for bug-gnu-emacs@gnu.org; Thu, 10 Oct 2013 10:31:03 -0400 Original-Received: from faina.iro.umontreal.ca (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id r9AEV2f4013111; Thu, 10 Oct 2013 10:31:02 -0400 Original-Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id 226A1B4149; Thu, 10 Oct 2013 10:31:02 -0400 (EDT) In-Reply-To: <87pprds1fw.fsf@flea.lifelogs.com> (Ted Zlatanov's message of "Thu, 10 Oct 2013 09:25:07 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV4727=0 X-NAI-Spam-Version: 2.3.0.9362 : core <4727> : inlines <138> : streams <1053492> : uri <1561335> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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:79150 Archived-At: >>> The docstring should prominently say that this var doesn't work with >>> gpg2 because gpg2 does not let Emacs cache the passphrase (IIUC we >>> can't make this var effective without changes in gpg2). DU> OK, I'll add it, though I'd also like to add a note saying that setting DU> this variable for gpg2 is kind of nonsense. > As the user, I want a single setting across all my systems, so I don't > know in advance if gpg1, gpg2, or both will be installed. I could add > an explicit version check in my init file, but maybe epg.el could issue > a warning if it detects that situation, just to be helpful? IIUC, for gpg2 this var has no effect whatsoever, so if you want password caching you need to setup gpg-agent: nothing Emacs can do about it. So the "single setting" is: set this var (for those systems that use gpg1) and setup gpg-agent (on those systems that have gpg2). Stefan