From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Simon Josefsson Newsgroups: gmane.emacs.devel Subject: Re: Incomplete output from "cvs annotate" Date: Tue, 20 Jan 2004 13:01:54 +0100 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <2719-Mon19Jan2004231825+0200-eliz@elta.co.il> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1074603470 10720 80.91.224.253 (20 Jan 2004 12:57:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 20 Jan 2004 12:57:50 +0000 (UTC) Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Tue Jan 20 13:57:41 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AivRt-00063M-00 for ; Tue, 20 Jan 2004 13:57:41 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1AivRt-0001uT-00 for ; Tue, 20 Jan 2004 13:57:41 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1Aiuzs-0002Xd-GJ for emacs-devel@quimby.gnus.org; Tue, 20 Jan 2004 07:28:44 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AiutG-0000Mc-2F for emacs-devel@gnu.org; Tue, 20 Jan 2004 07:21:54 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AiusY-0000B0-GS for emacs-devel@gnu.org; Tue, 20 Jan 2004 07:21:41 -0500 Original-Received: from [80.91.224.249] (helo=main.gmane.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AiuaH-0003fT-1u for emacs-devel@gnu.org; Tue, 20 Jan 2004 07:02:17 -0500 Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1AiuaG-0005Ne-00 for ; Tue, 20 Jan 2004 13:02:16 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Received: from sea.gmane.org ([80.91.224.252]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AiuaE-0005NW-00 for ; Tue, 20 Jan 2004 13:02:14 +0100 Original-Received: from news by sea.gmane.org with local (Exim 3.35 #1 (Debian)) id 1AiuaE-0000oA-00 for ; Tue, 20 Jan 2004 13:02:14 +0100 Original-Lines: 18 Original-X-Complaints-To: usenet@sea.gmane.org User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:mIfUOsL2uspK9sN7KIdHRQEhseY= X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:19333 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:19333 "Eli Zaretskii" writes: >> From: Simon Josefsson >> Date: Mon, 19 Jan 2004 15:59:45 +0100 >> >> If the data need to be collapsed into the same buffer, it should >> happen inside Emacs, not by cloning the fd. > > You cannot DTRT to put data from different descriptors together > because you don't know their relative timing. Wouldn't select on both fd's and reading from the first one available, and then sending that to the buffer, work? Perhaps if there is data in both stdout and stderr, write the stderr data. Surely there is some similar logic somewhere in bash, the kernel or somewhere. Requiring another script to be installed is not good, IMHO. Can't the script be simulated in elisp somehow?