From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alex =?utf-8?Q?Benn=C3=A9e?= Newsgroups: gmane.emacs.help Subject: Controlling gpg-agent from Emacs Date: Tue, 03 Dec 2013 09:12:53 +0000 Message-ID: <877gbmi9gq.fsf@linaro.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1386061979 8094 80.91.229.3 (3 Dec 2013 09:12:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 3 Dec 2013 09:12:59 +0000 (UTC) To: "help-gnu-emacs\@gnu.org Help" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Dec 03 10:13:05 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 1Vnm2S-0005wu-Cw for geh-help-gnu-emacs@m.gmane.org; Tue, 03 Dec 2013 10:13:04 +0100 Original-Received: from localhost ([::1]:41133 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vnm2R-0001cA-US for geh-help-gnu-emacs@m.gmane.org; Tue, 03 Dec 2013 04:13:03 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51098) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vnm2B-0001bN-VY for help-gnu-emacs@gnu.org; Tue, 03 Dec 2013 04:12:52 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vnm27-0006co-Oo for help-gnu-emacs@gnu.org; Tue, 03 Dec 2013 04:12:47 -0500 Original-Received: from static.88-198-71-155.clients.your-server.de ([88.198.71.155]:47307 helo=socrates.bennee.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vnm27-0006cV-IO for help-gnu-emacs@gnu.org; Tue, 03 Dec 2013 04:12:43 -0500 Original-Received: from localhost ([127.0.0.1] helo=zen.linaro.local) by socrates.bennee.com with esmtp (Exim 4.80) (envelope-from ) id 1Vnm4N-0004K5-QJ for help-gnu-emacs@gnu.org; Tue, 03 Dec 2013 10:15:03 +0100 User-agent: mu4e 0.9.9.6pre2; emacs 24.3.2 X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: kernel-hacker@bennee.com X-SA-Exim-Scanned: No (on socrates.bennee.com); SAEximRunCond expanded to false X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 88.198.71.155 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:94802 Archived-At: Hi, I have a problem when running Emacs in terminal mode when triggering things which require GPG (like "pass" to fetch a password). The pinentry program doesn't seem to play well with Emacs causing the terminal to get very confused. Reading through the gpg-agent docs seems to imply it should be possible to feed your passphrase to the agent ahead of time so it's ready to run the decryption when gnupg is invoked (gpg-preset-passphrase). However I can't get that to work (gpg-agent seems to think it's an unsupported command). I also found a shell script (https://github.com/ecraven/pinentry-emacs) which seems to use emacsclient to prompt for a passphrase but the page was loaded with enough caveats I haven't tried it yet. Has anyone else got a better solution? Cheers, -- Alex Bennée http://www.bennee.com/~alex