From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Fix needed for communication with gpg-agent Date: Fri, 23 Feb 2007 13:07:58 -0500 Message-ID: References: <87irdzs6pp.fsf@stupidchicken.com> <87fy91g1pl.fsf@catnip.gol.com> <87wt2dk2rv.fsf@stupidchicken.com> <873b4yt7xx.fsf@stupidchicken.com> <87ps82ukz8.fsf@wheatstone.g10code.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1172254133 26352 80.91.229.12 (23 Feb 2007 18:08:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 23 Feb 2007 18:08:53 +0000 (UTC) Cc: rms@gnu.org, Sascha Wilde , Chong Yidong , Daiki Ueno , emacs-devel@gnu.org, Miles Bader To: Werner Koch Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Feb 23 19:08:41 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 1HKeqW-0004ut-RH for ged-emacs-devel@m.gmane.org; Fri, 23 Feb 2007 19:08:41 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HKeqW-0007F0-IB for ged-emacs-devel@m.gmane.org; Fri, 23 Feb 2007 13:08:40 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HKepw-00072z-WD for emacs-devel@gnu.org; Fri, 23 Feb 2007 13:08:05 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HKepw-00072X-8k for emacs-devel@gnu.org; Fri, 23 Feb 2007 13:08:04 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HKepw-00072Q-5v for emacs-devel@gnu.org; Fri, 23 Feb 2007 13:08:04 -0500 Original-Received: from tomts10.bellnexxia.net ([209.226.175.54] helo=tomts10-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1HKepr-0000ym-J9; Fri, 23 Feb 2007 13:07:59 -0500 Original-Received: from pastel.home ([74.12.210.227]) by tomts10-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20070223180758.STWY1723.tomts10-srv.bellnexxia.net@pastel.home>; Fri, 23 Feb 2007 13:07:58 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 45386831A; Fri, 23 Feb 2007 13:07:58 -0500 (EST) In-Reply-To: <87ps82ukz8.fsf@wheatstone.g10code.de> (Werner Koch's message of "Thu\, 22 Feb 2007 19\:04\:59 +0100") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.93 (gnu/linux) X-detected-kernel: Solaris 8 (1) 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:66688 Archived-At: > Is it possible to enhance server-start/emacsclient so that it does not > edit a file but asks for string and returns that one? Pinentry could > then use this feature for user interaction. 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. Stefan PS: Also in case gpg is run on a different machine than Emacs, you may bump into difficulties, although maybe this is sufficiently unlikely/impossible.