From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: Fix needed for communication with gpg-agent Date: Fri, 23 Feb 2007 19:19:37 -0500 Message-ID: <878xeoiezq.fsf@stupidchicken.com> References: <87irdzs6pp.fsf@stupidchicken.com> <87r6siy5he.fsf@wheatstone.g10code.de> <87abz4cv8l.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1172276418 26527 80.91.229.12 (24 Feb 2007 00:20:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 24 Feb 2007 00:20:18 +0000 (UTC) Cc: wilde@sha-bang.de, Werner Koch , ueno@unixuser.org, rms@gnu.org, emacs-devel@gnu.org To: storm@cua.dk (Kim F. Storm) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Feb 24 01:20:11 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 1HKke3-0000zU-0I for ged-emacs-devel@m.gmane.org; Sat, 24 Feb 2007 01:20:11 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HKke2-0005wY-AG for ged-emacs-devel@m.gmane.org; Fri, 23 Feb 2007 19:20:10 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HKkdo-0005wT-3i for emacs-devel@gnu.org; Fri, 23 Feb 2007 19:19:56 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HKkdn-0005wL-RG for emacs-devel@gnu.org; Fri, 23 Feb 2007 19:19:55 -0500 Original-Received: from south-station-annex.mit.edu ([18.72.1.2]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1HKkdn-0005td-Js; Fri, 23 Feb 2007 19:19:55 -0500 Original-Received: from grand-central-station.mit.edu (GRAND-CENTRAL-STATION.MIT.EDU [18.7.21.82]) by south-station-annex.mit.edu (8.13.6/8.9.2) with ESMTP id l1O0JmJf002495; Fri, 23 Feb 2007 19:19:50 -0500 (EST) Original-Received: from outgoing-legacy.mit.edu (OUTGOING-LEGACY.MIT.EDU [18.7.22.104]) by grand-central-station.mit.edu (8.13.6/8.9.2) with ESMTP id l1O0JeGH027236; Fri, 23 Feb 2007 19:19:40 -0500 (EST) Original-Received: from localhost (MAIN-TWELVE-TWO-THIRTY-TWO.MIT.EDU [18.19.5.232]) ) by outgoing-legacy.mit.edu (8.13.6/8.12.4) with ESMTP id l1O0JbR6003331; Fri, 23 Feb 2007 19:19:39 -0500 (EST) Original-Received: from cyd by localhost with local (Exim 3.36 #1 (Debian)) id 1HKkdV-0002nK-00; Fri, 23 Feb 2007 19:19:37 -0500 In-Reply-To: (Kim F. Storm's message of "Sat\, 24 Feb 2007 00\:58\:57 +0100") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.94 (gnu/linux) X-Scanned-By: MIMEDefang 2.42 X-Spam-Score: -2.599 X-detected-kernel: Solaris 9.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:66719 Archived-At: storm@cua.dk (Kim F. Storm) writes: > Noone has yet explained why using accept-process-output to wait just > for the pgp process and not process keyboard input while waiting is > not sufficient. > > If we need to enable SYNC_INPUT for that to work, and we don't want to > do that in general, we could make a negative "just-this-one" arg mean > "wait for single process to terminate with input blocked." > > I.e. a call like this: > > (accept-process-output process nil nil -1) > > We would only have to do that on a terminal, as pinentry works fine on > X already. > > Any readon that wouldn't work?? Have you tried it? When I tried, gpg quits immediately, with or without SYNC_INPUT; I can't debug it because I don't understand how this idea is supposed to work in the first place. IIUC, incoming tty input in stored by Emacs, never forwarded to the gpg process.