From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: Redirecting standard output Date: Thu, 21 Apr 2011 21:31:58 +0200 Organization: Programmerer Ingebrigtsen Message-ID: References: <83oc402ky4.fsf@gnu.org> <8362q73dap.fsf@gnu.org> <876FF1E0-A9BB-4804-845C-46947AC085EE@swipnet.se> <4DB08348.3040208@lanl.gov> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1303414348 26741 80.91.229.12 (21 Apr 2011 19:32:28 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 21 Apr 2011 19:32:28 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Apr 21 21:32:23 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 1QCzbz-0003hs-EW for ged-emacs-devel@m.gmane.org; Thu, 21 Apr 2011 21:32:23 +0200 Original-Received: from localhost ([::1]:57035 helo=lists2.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QCzby-0004cp-6g for ged-emacs-devel@m.gmane.org; Thu, 21 Apr 2011 15:32:22 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:51341) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QCzbv-0004cK-Fa for emacs-devel@gnu.org; Thu, 21 Apr 2011 15:32:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QCzbq-0005Ix-I5 for emacs-devel@gnu.org; Thu, 21 Apr 2011 15:32:19 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:48904) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QCzbq-0005Io-7B for emacs-devel@gnu.org; Thu, 21 Apr 2011 15:32:14 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QCzbm-0003aA-Pz for emacs-devel@gnu.org; Thu, 21 Apr 2011 21:32:10 +0200 Original-Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 21 Apr 2011 21:32:10 +0200 Original-Received: from larsi by cm-84.215.51.58.getinternet.no with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 21 Apr 2011 21:32:10 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 25 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: cm-84.215.51.58.getinternet.no Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAElBMVEVmAAC4fXdoAABuBwWC HxqPMy3plEilAAACeklEQVQ4jXWTwbbiIAyGM7Y+ACp7D8W9t9C9lrAXSd7/VeZP6507sxjqUZuP JH9CoBCqziEEXjlXrSyLKOOdws2pbqDG6rT5Z1O/gYXFvw3cIk8ppRBTSeVOiKTaN5A5TCmEm2+u vSmoEQOReTIQ14AkFGHWOgOEN6cpzQZCuFJsql7foa7UeQ4QyPMGRjdHrxLqlTjb3h0EGqHNqYhe aYnlG9CVBj8FlUfWTpEz7AcA2GmQmFXfk9T7WKAA4E5kpEfofQ08duqFWXaAdSBhvo9M6FNk1ZUT rIOhWi80FgRlrsrcpaTEsPNyBHhhAyqFPCkA5iVj1vvyoLFadxiMOSHP4NxFz1yItQ8qiFYeW3Ln 49M5L8ls9sFj5Nku9X5sCr/jTBQmedBgis/NOderWHxoD9eXiRWk5rK4bUlbDwciA3R8kSKIb16k OjnDYQNjH+nRvKu7i2/o7vTaI9GvthvtS7WECEXZurXZP9B3jAQq7VsZ2+bNwX25Cy/E8qkPj26B DA2sZe/6vr05NQUX/7p9ToN2Qa4xw+N0Pt0+diRvcKn+SkfvTnLib7CndfqmBaCfGDX+AP90GHPv zueTcPjO0T5pfPbPr1n0A6R+KvST+7roJHr/UfXH53mKoq9vVV5NWGvAl1gwfP/UYavjCmD0+2ET tnXCCy/zmhlVik2JjbXT/LysOUzazwvmqdgVyphrl6tfQ5xv6d1vALhfmOwSrECPg8tTmAWTwzYU c4qzHVTCXUx2qnBImHeVxCsJXmrmlNeUBvyXXNOSayEtCT+487kkc0Eo0CQYH9yJzZwtUlqw6wOa dkbs9NdizsQlVQQyl5/VudD/1m/rO736sqU3MgAAAABJRU5ErkJggg== Mail-Copies-To: never X-Now-Playing: Michaela =?iso-8859-1?Q?Meli=E1n's?= _Los Angeles_: "Sebastian" User-Agent: Gnus/5.110016 (No Gnus v0.16) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:g3ZUxdtD5NhrwZgAL13rTR6jrJY= 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:138625 Archived-At: Davis Herring writes: > You can call `pipe' more than once; the trouble comes when you have to > choose which one to read from to avoid blocking the process. Probably > it's just that no one has bothered to implement it carefully enough with > `select' or so. Oh, I see... I was a bit confused about how pipe worked. Yes, that makes sense. Just hook up the STDERR endpoint to a pipe, too, and you're in business. For the MSDOS case (with STDERR-to-buffer), we'd just have to open another temp file, just like we do with STDOUT, so that's a very minor change. For the non-MSDOS case, using two pipes and select shouldn't be too difficult to implement, I think? Or are there gotchas when using select in Emacs? But before embarking on that, I'd like to get some more feedback on the existing patch. :-) -- (domestic pets only, the antidote for overdose, milk.) bloggy blog http://lars.ingebrigtsen.no/