From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kai Grossjohann Newsgroups: gmane.emacs.help Subject: Re: Inject some eshell features into shell? Date: Sun, 19 Oct 2003 12:56:30 +0200 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <86ismlijhd.fsf@slowfox.dyndns.org> References: <86fzhuqome.fsf@slowfox.dyndns.org> <3F904388.3020103@yahoo.com> <3F9070CF.5070809@yahoo.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1066561172 7125 80.91.224.253 (19 Oct 2003 10:59:32 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 19 Oct 2003 10:59:32 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Oct 19 12:59:30 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1ABBHW-0007M2-00 for ; Sun, 19 Oct 2003 12:59:30 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1ABBFw-0003ER-7K for geh-help-gnu-emacs@m.gmane.org; Sun, 19 Oct 2003 06:57:52 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1ABBFJ-0003B8-IX for help-gnu-emacs@gnu.org; Sun, 19 Oct 2003 06:57:13 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1ABBEf-0002m4-RL for help-gnu-emacs@gnu.org; Sun, 19 Oct 2003 06:57:04 -0400 Original-Received: from [80.91.224.249] (helo=main.gmane.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1ABBEf-0002m0-BM for help-gnu-emacs@gnu.org; Sun, 19 Oct 2003 06:56:33 -0400 Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1ABBEd-0004C7-00 for ; Sun, 19 Oct 2003 12:56:31 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: help-gnu-emacs@gnu.org Original-Received: from sea.gmane.org ([80.91.224.252]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1ABBEc-0004Bz-00 for ; Sun, 19 Oct 2003 12:56:30 +0200 Original-Received: from news by sea.gmane.org with local (Exim 3.35 #1 (Debian)) id 1ABBEc-0001nb-00 for ; Sun, 19 Oct 2003 12:56:30 +0200 Original-Lines: 33 Original-X-Complaints-To: usenet@sea.gmane.org User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3 (berkeley-unix) Cancel-Lock: sha1:Zqo+0TjQ1dQKT/oFjuQaiQDPHxQ= X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:13338 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:13338 Kevin Rodgers writes: > Kevin Rodgers wrote: > >> Here's a start. It's main deficiency is that it only works for commands >> that take zero or one argument: > > > This should fix that problem: Hey, cool! It's not quite what I meant, but you're showing me the interesting bits. I need to set comint-input-sender to my function, and my function needs to fall back using comint-simple-send. What I meant was something less automatic: Have an alist which says which Lisp to invoke depending on the first word. But maybe it's also good to use the eshell way of doing things: just look for a kshell/foo function if the user entered foo. When using eshell, I noticed that many Lisp functions are not suitable to be called from the shell prompt. For example, cvs-update is a good candiate, but it requires me to pass FLAGS (and DIRECTORY). It just fees unnatural to type "cvs-update . nil" at the shell prompt, when "cvs-update" ought to do. But let me thank you again for showing me the way to do it. If I ever get a round tuit, then of course I'll share my meagre results. (For maximum bliss, I'll need to work on getting a decent shell under Windows.) -- Two cafe au lait please, but without milk.