From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kai Grossjohann Newsgroups: gmane.emacs.devel Subject: Re: request for review: Doing direct file I/O in Emacs Lisp Date: Sat, 15 May 2004 18:27:54 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <86oeop7j05.fsf@slowfox.dyndns.org> References: <87isf0vjtl.fsf@emptyhost.emptydomain.de> <87sme3b88m.fsf@emptyhost.emptydomain.de> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1084638561 342 80.91.224.253 (15 May 2004 16:29:21 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 15 May 2004 16:29:21 +0000 (UTC) Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sat May 15 18:29:16 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 1BP22G-0002RO-00 for ; Sat, 15 May 2004 18:29:16 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BP22F-0006GS-00 for ; Sat, 15 May 2004 18:29:15 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BP21k-0006e6-0G for emacs-devel@quimby.gnus.org; Sat, 15 May 2004 12:28:44 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.34) id 1BP21X-0006YZ-1v for emacs-devel@gnu.org; Sat, 15 May 2004 12:28:31 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.34) id 1BP20z-0006JQ-1A for emacs-devel@gnu.org; Sat, 15 May 2004 12:28:28 -0400 Original-Received: from [80.91.224.249] (helo=main.gmane.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BP20y-0006JM-Op for emacs-devel@gnu.org; Sat, 15 May 2004 12:27:56 -0400 Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1BP20y-0005ZT-00 for ; Sat, 15 May 2004 18:27:56 +0200 Original-Received: from pd951f40e.dip.t-dialin.net ([217.81.244.14]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 15 May 2004 18:27:56 +0200 Original-Received: from kai.grossjohann by pd951f40e.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 15 May 2004 18:27:56 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Lines: 17 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: pd951f40e.dip.t-dialin.net User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (berkeley-unix) Cancel-Lock: sha1:I3rs+eFfpmEwVZgxK7aOuvTuVzQ= X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 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:23485 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:23485 Richard Stallman writes: > > When eshell sees a redirect from a builtin, I think it would be most > > efficient to produce the output in a buffer and write it with > > write-region into the file. > > What about "ls foo | grep bla"? Then the output isn't a file. > > Then you could put the ls output in a buffer and feed it to grep. > That would work fine. But then, you would have to wait until ls is finished. It would be very useful to be able to see partial results while the command is running. (In this particular case, it is unlikely that the builtin takes a lot of time, but it is only an example.) Kai