From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?utf-8?Q?Jan_Dj=C3=A4rv?= Newsgroups: gmane.emacs.devel Subject: Re: Redirecting standard output Date: Thu, 21 Apr 2011 19:05:39 +0200 Message-ID: <876FF1E0-A9BB-4804-845C-46947AC085EE@swipnet.se> References: <83oc402ky4.fsf@gnu.org> <8362q73dap.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (iPhone Mail 8H7) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1303405559 6057 80.91.229.12 (21 Apr 2011 17:05:59 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 21 Apr 2011 17:05:59 +0000 (UTC) Cc: Lars Magne Ingebrigtsen , "emacs-devel@gnu.org" To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Apr 21 19:05:55 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 1QCxKE-0004WT-Di for ged-emacs-devel@m.gmane.org; Thu, 21 Apr 2011 19:05:54 +0200 Original-Received: from localhost ([::1]:60536 helo=lists2.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QCxKD-0005tZ-97 for ged-emacs-devel@m.gmane.org; Thu, 21 Apr 2011 13:05:53 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:36166) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QCxKB-0005tE-Fe for emacs-devel@gnu.org; Thu, 21 Apr 2011 13:05:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QCxKA-0007DF-Pu for emacs-devel@gnu.org; Thu, 21 Apr 2011 13:05:51 -0400 Original-Received: from smtprelay-h21.telenor.se ([195.54.99.196]:57123) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QCxK6-0007Ba-RM; Thu, 21 Apr 2011 13:05:46 -0400 Original-Received: from ipb3.telenor.se (ipb3.telenor.se [195.54.127.166]) by smtprelay-h21.telenor.se (Postfix) with ESMTP id CA08DEA6E9; Thu, 21 Apr 2011 19:05:42 +0200 (CEST) X-SENDER-IP: [85.225.45.100] X-LISTENER: [smtp.bredband.net] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AixRADJjsE1V4S1kPGdsb2JhbACJGJs0fwsBAQEBNzKIcLtehXYEkjA X-IronPort-AV: E=Sophos;i="4.64,252,1301868000"; d="scan'208";a="4941080" Original-Received: from c-642de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.100]) by ipb3.telenor.se with ESMTP; 21 Apr 2011 19:05:42 +0200 Original-Received: from [172.20.199.248] (janiphone [172.20.199.248]) by coolsville.localdomain (Postfix) with ESMTPSA id CCF147FA05A; Thu, 21 Apr 2011 19:05:41 +0200 (CEST) In-Reply-To: <8362q73dap.fsf@gnu.org> X-Mailer: iPhone Mail (8H7) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 195.54.99.196 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:138619 Archived-At: 21 apr 2011 kl. 16:10 skrev Eli Zaretskii : >> From: Lars Magne Ingebrigtsen >> Date: Thu, 21 Apr 2011 15:25:29 +0200 >>=20 >> However, redirecting STDERR to a buffer seems like it would be quite >> complicated, unfortunately. I thought that having STDOUT and STDERR be >> handled symmetrically would be a nice feature (for redirecting STDOUT to >> one buffer and STDERR to another, for instance), but unless I'm reading >> the code wrong (and I very well could be), I don't see an obvious way to >> do that. >=20 > On Posix systems, we use a pipe to read from subprocess's STDOUT. You > cannot do the same with STDERR, but you can redirect STDERR to a > temporary file, and then read it when the subprocess exits. That is news to me. I've redirected STDERR to a pipe many times in other pro= grams. Why can't it be done in Emacs? Jan D.