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: Sat, 24 Feb 2007 23:08:03 +0900 Message-ID: <87649r643g.fsf@catnip.gol.com> References: <87irdzs6pp.fsf@stupidchicken.com> <87fy91g1pl.fsf@catnip.gol.com> <87wt2dk2rv.fsf@stupidchicken.com> <873b4yt7xx.fsf@stupidchicken.com> <87ps82ukz8.fsf@wheatstone.g10code.de> 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 1172326144 8851 80.91.229.12 (24 Feb 2007 14:09:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 24 Feb 2007 14:09:04 +0000 (UTC) Cc: rms@gnu.org, Sascha Wilde , Chong Yidong , Daiki Ueno , emacs-devel@gnu.org, Werner Koch To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Feb 24 15:08:52 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 1HKxa0-00029h-17 for ged-emacs-devel@m.gmane.org; Sat, 24 Feb 2007 15:08:52 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HKxZz-0003ir-Oa for ged-emacs-devel@m.gmane.org; Sat, 24 Feb 2007 09:08:51 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HKxZo-0003ii-Qv for emacs-devel@gnu.org; Sat, 24 Feb 2007 09:08:40 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HKxZm-0003iU-G2 for emacs-devel@gnu.org; Sat, 24 Feb 2007 09:08:39 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HKxZm-0003iR-A8 for emacs-devel@gnu.org; Sat, 24 Feb 2007 09:08:38 -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 1HKxZk-0005n7-5D; Sat, 24 Feb 2007 09:08:36 -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 1HKxZA-0003oP-9p; Sat, 24 Feb 2007 23:08:00 +0900 Original-Received: by catnip.gol.com (Postfix, from userid 1000) id EFE182F45; Sat, 24 Feb 2007 23:08:03 +0900 (JST) System-Type: i686-pc-linux-gnu In-Reply-To: (Stefan Monnier's message of "Fri\, 23 Feb 2007 13\:07\:58 -0500") Original-Lines: 19 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:66743 Archived-At: Stefan Monnier writes: > emacsclient --eval '(read-passwd "gpg passwd: ")' > > This looks like a very clean solution. Except that you have to make sure > that Emacs is running a server, and if the user is running several Emacsen at > the same time you may not be able to get to that server. Given Werner's proposed mechanism, pinentry is contacting emacs because emacs asked it to (by setting the special environment variable) -- so Emacs should be prepared to be contacted, and can communicate any needed info in the environment variable. -Miles -- In New York, most people don't have cars, so if you want to kill a person, you have to take the subway to their house. And sometimes on the way, the train is delayed and you get impatient, so you have to kill someone on the subway. [George Carlin]