From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: request for review: Doing direct file I/O in Emacs Lisp Date: Sat, 15 May 2004 04:53:45 -0400 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <87isf0vjtl.fsf@emptyhost.emptydomain.de> <87sme3b88m.fsf@emptyhost.emptydomain.de> Reply-To: rms@gnu.org NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1084611650 20821 80.91.224.253 (15 May 2004 09:00:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 15 May 2004 09:00:50 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sat May 15 11:00:39 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 1BOv27-0003qo-00 for ; Sat, 15 May 2004 11:00:39 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BOv26-0004jh-00 for ; Sat, 15 May 2004 11:00:38 +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 1BOuz5-00081d-Ne for emacs-devel@quimby.gnus.org; Sat, 15 May 2004 04:57:31 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.34) id 1BOuwJ-00070R-Kv for emacs-devel@gnu.org; Sat, 15 May 2004 04:54:39 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.34) id 1BOuvV-0005ts-AW for emacs-devel@gnu.org; Sat, 15 May 2004 04:54:23 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BOuvT-0005qR-5B for emacs-devel@gnu.org; Sat, 15 May 2004 04:53:47 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1BOuvR-0007Am-J3; Sat, 15 May 2004 04:53:45 -0400 Original-To: Kai Grossjohann In-reply-to: <87sme3b88m.fsf@emptyhost.emptydomain.de> (message from Kai Grossjohann on Fri, 14 May 2004 12:42:17 +0200) 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:23471 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:23471 > 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. That would be an interesting feature. But I think there is also the need to send output from a process to a Lisp command, and to send output from a Lisp command to a process. This way, one can do: shell_command | lisp_builtin | shell_command_2 You can do this with the existing facilities of start-process.