From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: Re: Fix needed for communication with gpg-agent Date: Tue, 20 Feb 2007 08:35:50 +0900 Message-ID: <87fy91g1pl.fsf@catnip.gol.com> References: <87irdzs6pp.fsf@stupidchicken.com> Reply-To: Miles Bader NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1171928181 25196 80.91.229.12 (19 Feb 2007 23:36:21 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 19 Feb 2007 23:36:21 +0000 (UTC) Cc: rms@gnu.org, emacs-devel@gnu.org To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 20 00:36:10 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HJI3F-0001Zb-9s for ged-emacs-devel@m.gmane.org; Tue, 20 Feb 2007 00:36:09 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HJI3E-0003I0-SR for ged-emacs-devel@m.gmane.org; Mon, 19 Feb 2007 18:36:08 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HJI32-0003Hm-Si for emacs-devel@gnu.org; Mon, 19 Feb 2007 18:35:56 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HJI30-0003HF-Gt for emacs-devel@gnu.org; Mon, 19 Feb 2007 18:35:55 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HJI30-0003HC-Bn for emacs-devel@gnu.org; Mon, 19 Feb 2007 18:35:54 -0500 Original-Received: from smtp02.dentaku.gol.com ([203.216.5.72]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1HJI2x-000698-8F; Mon, 19 Feb 2007 18:35:51 -0500 Original-Received: from 203-216-97-073.dsl.gol.ne.jp ([203.216.97.73] helo=catnip.gol.com) by smtp02.dentaku.gol.com with esmtpa (Dentaku) id 1HJI2u-0003TL-Nz; Tue, 20 Feb 2007 08:35:48 +0900 Original-Received: by catnip.gol.com (Postfix, from userid 1000) id 3753D2F45; Tue, 20 Feb 2007 08:35:50 +0900 (JST) System-Type: i686-pc-linux-gnu In-Reply-To: <87irdzs6pp.fsf@stupidchicken.com> (Chong Yidong's message of "Sun\, 18 Feb 2007 12\:42\:26 -0500") Original-Lines: 24 X-Abuse-Complaints: abuse@gol.com X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) 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:66544 Archived-At: Chong Yidong writes: > I don't see any reasonable way to do this. > > Roughly speaking, when Emacs is run in a console (i.e. as a curses > program), it monopolizes terminal input and output. I don't know of > any way to call the curses version of pinentry, have it temporarily > "take over" the terminal, and return control to Emacs once it's done. Yeah. One possible way might be to have emacs start its own gpg-agent daemon, specifying a custom pinentry program that uses emacs itself for interaction (Emacs would set the GPG_AGENT_INFO environment variable to communicate that to invocations of gpg). That seems a wee-bit heavyweight, since Emacs generally doesn't know whether you're going to run gpg, but I suppose it might be a reasonable option for people that use a long-running Emacs session. [This is all post-release stuff though, obviously...] -Miles -- Fast, small, soon; pick any 2.