From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: John Wiegley Newsgroups: gmane.emacs.devel Subject: Re: request for review: Doing direct file I/O in Emacs Lisp Date: Thu, 13 May 2004 15:50:23 -0700 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1084489579 17355 80.91.224.253 (13 May 2004 23:06:19 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 13 May 2004 23:06:19 +0000 (UTC) Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Fri May 14 01:06:10 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 1BOPHG-0007DZ-00 for ; Fri, 14 May 2004 01:06:10 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BOPHG-0003U8-00 for ; Fri, 14 May 2004 01:06:10 +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 1BOPHD-0000pM-Jk for emacs-devel@quimby.gnus.org; Thu, 13 May 2004 19:06:07 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.34) id 1BOP9s-0005HA-QK for emacs-devel@gnu.org; Thu, 13 May 2004 18:58:32 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.34) id 1BOP8y-0004FU-Up for emacs-devel@gnu.org; Thu, 13 May 2004 18:58:12 -0400 Original-Received: from [66.111.4.26] (helo=out2.smtp.messagingengine.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BOP7y-0003LH-AP for emacs-devel@gnu.org; Thu, 13 May 2004 18:56:34 -0400 X-Sasl-enc: w8MZSs6MADJoIZ/i8SzMKQ 1084488622 Original-Received: from Majnun.newartisans.com (65-101-11-205.phnx.qwest.net [65.101.11.205]) by mail.messagingengine.com (Postfix) with ESMTP id 4C0F0B72017 for ; Thu, 13 May 2004 18:50:22 -0400 (EDT) Original-Received: by Majnun.newartisans.com (Postfix, from userid 501) id C5F1D2A8C5D; Thu, 13 May 2004 15:50:23 -0700 (PDT) Original-To: emacs-devel@gnu.org In-Reply-To: (Richard Stallman's message of "Wed, 12 May 2004 15:41:45 -0400") User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (darwin) 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:23362 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:23362 Richard Stallman writes: > Could you tell me more? What data does eshell want to write into > files? Where is the data coming from? Is it coming from > subprocesses started by eshell, or is it generated from eshell > itself? Like Kai said, output comes both from eshell (Lisp) and subprocesses. Requiring all data to pass through a buffer, in order to save it to disk, is difficult to handle efficiently. Because the whole file must be stored in the buffer before being saved, it consumes unnecessary amounts of memory and processor time. One could make the argument that Emacs shouldn't be doing the work of a shell, and so shouldn't need this kind of efficiency. But having a command shell integrated with Lisp -- that works on all platforms -- has been so useful to me, that I'd really like it to be more efficient if it's not too much trouble. John