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: Fri, 14 May 2004 12:42:17 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <87sme3b88m.fsf@emptyhost.emptydomain.de> References: <87isf0vjtl.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 1084535855 6050 80.91.224.253 (14 May 2004 11:57:35 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 14 May 2004 11:57:35 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Fri May 14 13:57:27 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 1BObJf-0006ef-00 for ; Fri, 14 May 2004 13:57:27 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BObJf-0003IY-00 for ; Fri, 14 May 2004 13:57:27 +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 1BOafx-0002BM-Qn for emacs-devel@quimby.gnus.org; Fri, 14 May 2004 07:16:25 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.34) id 1BOaZy-0001RP-EW for emacs-devel@gnu.org; Fri, 14 May 2004 07:10:17 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.34) id 1BOaWl-0000v4-6b for emacs-devel@gnu.org; Fri, 14 May 2004 07:07:26 -0400 Original-Received: from [213.203.244.156] (helo=emptyhost.emptydomain.de) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BOaWk-0000uV-IB; Fri, 14 May 2004 07:06:54 -0400 Original-Received: by emptyhost.emptydomain.de (Postfix, from userid 1000) id 853AA1B802; Fri, 14 May 2004 12:42:17 +0200 (CEST) Original-To: rms@gnu.org In-Reply-To: (Richard Stallman's message of "Fri, 14 May 2004 05:21:27 -0400") User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.2 (gnu/linux) 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:23396 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:23396 Richard Stallman writes: > Both. Like any shell, eshell provides builtins and it is able to > invoke subprocesses. For example, you can type "find-file foo" as a > command to eshell, and eshell will then invoke the builtin find-file. > > 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. > When it is a matter of a subprocess, what could be useful is a feature > for start-process to specify files for additional descriptors. > That would be a completely different feature. 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 WDYT? But talk is cheap... Kai