From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "D Goel" Newsgroups: gmane.emacs.devel Subject: Re: Feature request/wishlist: allowing external processes to accept input in script mode Date: Wed, 26 Oct 2005 10:57:45 -0400 Message-ID: <87wtk0wck6.fsf@gnufans.net> References: <874q75xk4h.fsf@gnufans.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1130339933 22583 80.91.229.2 (26 Oct 2005 15:18:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 26 Oct 2005 15:18:53 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 26 17:18:50 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EUmzR-0005fP-1Y for ged-emacs-devel@m.gmane.org; Wed, 26 Oct 2005 17:14:57 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EUmzQ-000389-DE for ged-emacs-devel@m.gmane.org; Wed, 26 Oct 2005 11:14:56 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EUmm7-0003Zi-Lr for emacs-devel@gnu.org; Wed, 26 Oct 2005 11:01:11 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EUmm5-0003WJ-0e for emacs-devel@gnu.org; Wed, 26 Oct 2005 11:01:10 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EUmm4-0003WE-Jm for emacs-devel@gnu.org; Wed, 26 Oct 2005 11:01:08 -0400 Original-Received: from [209.225.28.225] (helo=mxsf25.cluster1.charter.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EUmm4-0001D1-4W for emacs-devel@gnu.org; Wed, 26 Oct 2005 11:01:08 -0400 Original-Received: from mxip26a.cluster1.charter.net (mxip26a.cluster1.charter.net [209.225.28.181]) by mxsf25.cluster1.charter.net (8.12.11/8.12.11) with ESMTP id j9QF0w5p030521 for ; Wed, 26 Oct 2005 11:01:04 -0400 Original-Received: from 24-197-153-112.dhcp.gsvl.ga.charter.com (HELO marie) ([24.197.153.112]) by mxip26a.cluster1.charter.net with ESMTP; 26 Oct 2005 10:58:52 -0400 X-IronPort-AV: i="3.97,254,1125892800"; d="scan'208"; a="373250179:sNHT496479984" Original-Received: from deego by marie with local (Exim 3.36 #1 (Debian)) id 1EUmin-0001Pj-00; Wed, 26 Oct 2005 10:57:45 -0400 Original-To: Andreas Schwab X-Face: #5@=vrmx5t3mZaPY8(mR.n+V#:%4NW7j5A&^}@lGp2rK; CQ4%iH1v'gh/^A)w5*6c&R2(P' 4+seYDq8OK'LPI/C(C^A*w|f*t+8, 'T8b#_0~h3!A7GoVroE[cr0Fb'A0%SdU|Lk@gBV&1vA In-Reply-To: (Andreas Schwab's message of "Wed, 26 Oct 2005 01:52:25 +0200") User-Agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux) 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:44896 Archived-At: Andreas Schwab writes: > "D Goel" writes: > >> Now we call the above bash script from an emacs script, in various >> ways: >> >> ---- >> #!/usr/local/bin/emacscvs --script >> >> >> (setq a (call-process "y-or-n-p-my" nil t t "Question")) > > You explicitly tell that input for the process should come from /dev/null, > so this works as expected. I certainly agree with that. I supplied nil for infile above. My question is: what argument can I supply as infile so that when the external process expects an input, it actually accepts input from stdin? As far as I can tell, infile can only be a file, or nil.