From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: amd@gnu.org: eshell and external commands Date: Thu, 09 Aug 2007 11:58:00 -0400 Message-ID: <873aysr987.fsf@stupidchicken.com> References: <87zm11iqlv.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1186675517 29510 80.91.229.12 (9 Aug 2007 16:05:17 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 9 Aug 2007 16:05:17 +0000 (UTC) Cc: "Alfred M. Szmidt" , rms@gnu.org, emacs-devel@gnu.org To: John Wiegley Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Aug 09 18:05:06 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IJAVN-00071d-3t for ged-emacs-devel@m.gmane.org; Thu, 09 Aug 2007 18:04:57 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IJAVM-0005HC-0u for ged-emacs-devel@m.gmane.org; Thu, 09 Aug 2007 12:04:56 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IJARR-0002mC-LS for emacs-devel@gnu.org; Thu, 09 Aug 2007 12:00:53 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IJARP-0002la-F6 for emacs-devel@gnu.org; Thu, 09 Aug 2007 12:00:52 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IJARP-0002lO-93 for emacs-devel@gnu.org; Thu, 09 Aug 2007 12:00:51 -0400 Original-Received: from cyd.mit.edu ([18.115.2.24]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IJARK-0007HG-1D; Thu, 09 Aug 2007 12:00:46 -0400 Original-Received: by cyd.mit.edu (Postfix, from userid 1000) id DB0224E36E; Thu, 9 Aug 2007 11:58:00 -0400 (EDT) In-Reply-To: (John Wiegley's message of "Thu\, 09 Aug 2007 00\:23\:23 -0600") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) X-Detected-Kernel: Linux 2.6 (newer, 1) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:76260 Archived-At: John Wiegley writes: > Chong Yidong writes: > >> The following patch fixes this. However, maybe it is too drastic >> because it imposes the use of eshell-eval-command on *every* build-in >> command. > > This is how Eshell used to behave. It's is a bit drastic, because > eshell-eval-command is much, much slower than plain eval. I thought so at first, but after trying out, I don't notice any observable slowdown for using eshell-eval-command for the eshell/* lisp commands. > I'm prefer to find a fix which preservers the faster behavior for all cases > except those which break. Another simple possibility is to make the code that falls back on external commands perform eshell/wait on the external process, but this has obvious drawbacks too. I don't know how to hack the code to implement the deferment behavior for "fallback to external programs" commands. Do you have an idea how to do it?