From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Simon Josefsson Newsgroups: gmane.emacs.devel,gmane.emacs.gnus.general Subject: Re: Small patch to enable use of gpg-agent with pgg Date: Thu, 23 Mar 2006 12:12:18 +0100 Message-ID: <87odzx4dpp.fsf@latte.josefsson.org> References: <2cd46e7f0510031250u66ea1349yb437d539ce4027ef@mail.gmail.com> <20051007100014.GB4850@kenny.sha-bang.local> <2cd46e7f0510071106k3d4d3e6agc36f16a37d8b6bc6@mail.gmail.com> <20051007214952.GA30235@kenny.sha-bang.local> <20051008103627.GA1218@kenny.sha-bang.local> <2cd46e7f0510081131h14e2bbeaga7f1a33ebd6347c8@mail.gmail.com> <2cd46e7f0510101415t76825ea7u9749fe23da54ce@mail.gmail.com> <2cd46e7f0510121647x3c51fb65pc883ed61f4e864ab@mail.gmail.com> <2cd46e7f0510200708x4640d1c2t50743cf439e52dd4@mail.gmail.com> <87pskfq361.fsf@latte.josefsson.org> <87zmjicv9d.fsf@latte.josefsson.org> <87irq6yrfo.fsf@latte.josefsson.org> <87slp9y15z.fsf@latte.josefsson.org> <87wtelwhvl.fsf@latte.josefsson.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1143112382 20285 80.91.229.2 (23 Mar 2006 11:13:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 23 Mar 2006 11:13:02 +0000 (UTC) Cc: Sascha Wilde , Katsumi Yamaoka , "Daiki Ueno \(pgg author\)" , ding@gnus.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Mar 23 12:12:58 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FMNkA-0005R2-4V for ged-emacs-devel@m.gmane.org; Thu, 23 Mar 2006 12:12:43 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FMNk9-0007mG-Kr for ged-emacs-devel@m.gmane.org; Thu, 23 Mar 2006 06:12:41 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FMNjy-0007lz-DK for emacs-devel@gnu.org; Thu, 23 Mar 2006 06:12:30 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FMNjw-0007lk-Qa for emacs-devel@gnu.org; Thu, 23 Mar 2006 06:12:30 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FMNjw-0007lh-M3 for emacs-devel@gnu.org; Thu, 23 Mar 2006 06:12:28 -0500 Original-Received: from [217.13.230.178] (helo=yxa.extundo.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1FMNkW-0002HK-9e for emacs-devel@gnu.org; Thu, 23 Mar 2006 06:13:04 -0500 Original-Received: from localhost.localdomain (yxa.extundo.com [217.13.230.178]) (authenticated bits=0) by yxa.extundo.com (8.13.4/8.13.4/Debian-3sarge1) with ESMTP id k2NBCIDi022909; Thu, 23 Mar 2006 12:12:18 +0100 Original-To: Reiner Steib OpenPGP: id=B565716F; url=http://josefsson.org/key.txt X-Hashcash: 1:21:060323:wilde@sha-bang.de::bY1eOB/hixTFvZxD:1YUz X-Hashcash: 1:21:060323:emacs-devel@gnu.org::FiiStf0/ir8xTP2U:BCKS X-Hashcash: 1:21:060323:ding@gnus.org::4Ij/DSIiuMyAKWpc:9VFl X-Hashcash: 1:21:060323:ueno@unixuser.org::+PbM4yIb6NgEmsfz:BygY X-Hashcash: 1:21:060323:yamaoka@jpl.org::UmzAJ5o96e7gGCi6:KiCE X-Hashcash: 1:21:060323:reinersteib@imap.cc::IiR1cC8M7/Cw6OJ9:7ulf In-Reply-To: <87wtelwhvl.fsf@latte.josefsson.org> (Simon Josefsson's message of "Thu, 23 Mar 2006 11:54:54 +0100") User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) X-Virus-Scanned: ClamAV version 0.88, clamav-milter version 0.87 on yxa.extundo.com X-Virus-Status: Clean X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:51997 gmane.emacs.gnus.general:62381 Archived-At: Reinar, I think pgg is ready for v5-10 now. I am sorry for all these rapid changes. Simon Josefsson writes: >>> I think it is too complicated. It is simpler to remove the function. >>> Sascha, what do you think? People who enable pgg-gpg-use-agent >>> manually might be expected to make sure the agent really is running. >> >> I would like to see pgg do the right think when ever it can -- could >> we keep it for emacs 22 and just not use it if its not available? >> >> How about testing for the emacs version, or availability of >> make-network-process? >> >> I'll purpose a more compatible patch later -- but I don't have the >> time right now, sorry. > > Given that this function probably won't be used at all if Daiki's idea > is implemented, I think we should remove the function for now. > Daiki's approach (if I understand it correctly) of not second-guessing > what parameters gpg will need is more reliable than this approach, > even if this approach would work fine on all emacsen. I removed the function. The end result is this: 1) People who don't use the agent don't have to do anything, this is as before. 2) People who use the agent must enable pgg-gpg-use-agent manually. This is better than before, because the agent didn't work at all with pgg then. 3) People who use the agent must make sure the agent is still running (or disable the variable temporarily, or re-start the agent and fixing the environment variable using M-x setenv). If/when Daiki's idea (as I understand it) is implemented, the end result will be: *) Pgg will invoke gpg and then figure out whether a passphrase is needed and only at that point query for it. This will work regardless of whether the agent is used, whether a passphrase is required or not, or whether a pin code is required. The user doesn't have to fiddle with any variable. /Simon