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: Fri, 14 May 2004 05:21:27 -0400 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <87isf0vjtl.fsf@emptyhost.emptydomain.de> Reply-To: rms@gnu.org NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1084526893 16867 80.91.224.253 (14 May 2004 09:28:13 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 14 May 2004 09:28:13 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Fri May 14 11:28:02 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 1BOYz4-0006rT-00 for ; Fri, 14 May 2004 11:28:02 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BOYz4-0000DG-00 for ; Fri, 14 May 2004 11:28:02 +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 1BOYtu-00087i-As for emacs-devel@quimby.gnus.org; Fri, 14 May 2004 05:22:42 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.34) id 1BOYtE-0007u0-6X for emacs-devel@gnu.org; Fri, 14 May 2004 05:22:00 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.34) id 1BOYsh-0007hg-Le for emacs-devel@gnu.org; Fri, 14 May 2004 05:21:58 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BOYsh-0007hb-CG for emacs-devel@gnu.org; Fri, 14 May 2004 05:21:27 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1BOYsh-0008Tt-1R; Fri, 14 May 2004 05:21:27 -0400 Original-To: Kai Grossjohann In-reply-to: <87isf0vjtl.fsf@emptyhost.emptydomain.de> (message from Kai Grossjohann on Thu, 13 May 2004 09:59:34 +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:23390 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:23390 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. 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.