From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Moreton Newsgroups: gmane.emacs.devel Subject: Re: Redirecting standard output Date: Sun, 01 May 2011 18:56:52 +0100 Message-ID: <82zkn6qp7f.fsf@gmail.com> References: <83oc402ky4.fsf@gnu.org> <8362q73dap.fsf@gnu.org> <876FF1E0-A9BB-4804-845C-46947AC085EE@swipnet.se> <4DB08348.3040208@lanl.gov> <83ei4sbuf3.fsf@gnu.org> <4DB3DFC1.7040303@swipnet.se> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1304272641 18536 80.91.229.12 (1 May 2011 17:57:21 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 1 May 2011 17:57:21 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun May 01 19:57:18 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QGatR-0005PL-Fb for ged-emacs-devel@m.gmane.org; Sun, 01 May 2011 19:57:17 +0200 Original-Received: from localhost ([::1]:58362 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QGatR-0003TB-4G for ged-emacs-devel@m.gmane.org; Sun, 01 May 2011 13:57:17 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:41597) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QGatL-0003Sv-OR for emacs-devel@gnu.org; Sun, 01 May 2011 13:57:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QGatH-0005Ck-Ke for emacs-devel@gnu.org; Sun, 01 May 2011 13:57:11 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:54118) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QGatH-0005Cc-F0 for emacs-devel@gnu.org; Sun, 01 May 2011 13:57:07 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QGatG-0005Kd-Jy for emacs-devel@gnu.org; Sun, 01 May 2011 19:57:06 +0200 Original-Received: from 82-69-64-228.dsl.in-addr.zen.co.uk ([82.69.64.228]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 01 May 2011 19:57:06 +0200 Original-Received: from andrewjmoreton by 82-69-64-228.dsl.in-addr.zen.co.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 01 May 2011 19:57:06 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 24 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 82-69-64-228.dsl.in-addr.zen.co.uk User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (windows-nt) Cancel-Lock: sha1:VJAS3GVscQ0JBfBuUQlpwFX4kaI= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:138944 Archived-At: On Sun 01 May 2011, Lars Magne Ingebrigtsen wrote: > Lars Magne Ingebrigtsen writes: > >> Unfortunately, I've just had very little time lately, so I'll just apply >> the STDOUT portion of the patch now, and we'll see what we do about >> STDERR later. > > I've now done this. I have not verified that it works on Windows/DOS, > so if someone could do that (and fix up any bloopers :-), I'd be > grateful. > > The test case is: > > (call-process "echo" nil '(:file "/tmp/buffer") nil "hello") > > which should leave you with a file called "/tmp/buffer" with "hello\n" > as the contents. This works fine for me on WinXP: (call-process "echo" nil '(:file "c:/temp/buffer") nil "hello") AndyM