From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.help Subject: Re: Controlling gpg-agent from Emacs Date: Fri, 06 Dec 2013 10:46:14 -0500 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <87ob4uyoc9.fsf@flea.lifelogs.com> References: <87wqjk1tuz.fsf@flea.lifelogs.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1386345011 29413 80.91.229.3 (6 Dec 2013 15:50:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 6 Dec 2013 15:50:11 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Dec 06 16:50:19 2013 Return-path: Envelope-to: geh-help-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 1VoxfW-0003QW-3k for geh-help-gnu-emacs@m.gmane.org; Fri, 06 Dec 2013 16:50:18 +0100 Original-Received: from localhost ([::1]:59761 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VoxfV-0000OR-N9 for geh-help-gnu-emacs@m.gmane.org; Fri, 06 Dec 2013 10:50:17 -0500 Original-Path: usenet.stanford.edu!news.kjsl.com!feeder.erje.net!eu.feeder.erje.net!news.albasani.net!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 45 Original-X-Trace: news.albasani.net NvAtjm7ijiD0TETlP0K7zd2+jiW8F3nb6YXP8vlRWfRJjpRFG0YfzOXzxXnGsMDoYekvnNMpdGj2qLRelCueZQ== Original-NNTP-Posting-Date: Fri, 6 Dec 2013 15:45:08 +0000 (UTC) Injection-Info: news.albasani.net; logging-data="Hb33GZyvIdIdNFcl3ZgDc28ndHR2MXP/joptEW98ZjRDBCvomK+ROfNRcGc+d9vEvnCwJDcjkNR6VTTeYYOzIW0AXQZX5hhZ5juDLMTfMQfDr5gInipsznoX969M7fpi"; mail-complaints-to="abuse@albasani.net" User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3.50 (gnu/linux) X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6; d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" Cancel-Lock: sha1:ebIc52H7s62qK62RJzpOVnPJEUo= sha1:/RWXAEFtTAIyns6Y8nhM6iK83ig= Original-Xref: usenet.stanford.edu gnu.emacs.help:202585 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:94854 Archived-At: On Fri, 06 Dec 2013 09:49:47 +0000 Alex Bennée wrote: AB> tzz@lifelogs.com writes: >> On Tue, 03 Dec 2013 09:12:53 +0000 Alex Bennée wrote: >> AB> AB> Reading through the gpg-agent docs seems to imply it should be possible AB> to feed your passphrase to the agent ahead of time so it's ready to run AB> the decryption when gnupg is invoked (gpg-preset-passphrase). However I AB> can't get that to work (gpg-agent seems to think it's an unsupported AB> command). >> AB> I also found a shell script (https://github.com/ecraven/pinentry-emacs) AB> which seems to use emacsclient to prompt for a passphrase but the page AB> was loaded with enough caveats I haven't tried it yet. >> AB> Has anyone else got a better solution? >> >> What version of GPG? AB> gnupg 2.0.20-1ubuntu3 AB> gnupg-agent 2.0.20-1ubuntu3 AB> I take it this option was removed? Yeah, I complained about it too but from another angle (you can't cache the EPA/EPG passphrase in Emacs anymore, like you could with GnuPG 1.x). Based on Daiki Ueno's explanations in emacs-devel[1] and in the bug reports[2] , I don't think we can expect improvements for the users here (it's a conscious decision by the GnuPG project). To avoid depending on the GnuPG project's decisions and for other reasons I want to implement native encryption in Emacs and submitted patches to that end. Stefan requested that we get external loading of libraries through FFI and other mechanisms working first[3]. This is a much more complex task and AFAIK no one bu me wants to implement it. So it will take a while; help is welcome. Meanwhile the best advice is to downgrade to GnuPG 1.x. Ted [1] https://lists.gnu.org/archive/html/emacs-devel/2013-10/msg00075.html [2] http://debbugs.gnu.org/cgi/bugreport.cgi?bug=15552 [3] https://lists.gnu.org/archive/html/emacs-devel/2013-10/msg00168.html