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: eshell functions, what is the magic spell. Date: Wed, 03 Dec 2003 22:10:32 +0000 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <87wu9do8mf.fsf@emptyhost.emptydomain.de> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1070489887 19323 80.91.224.253 (3 Dec 2003 22:18:07 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 3 Dec 2003 22:18:07 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 03 23:18:04 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 1ARfJs-0006q1-00 for ; Wed, 03 Dec 2003 23:18:04 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1ARgG9-0000JZ-MP for geh-help-gnu-emacs@m.gmane.org; Wed, 03 Dec 2003 18:18:17 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsmi-us.news.garr.it!newsmi-eu.news.garr.it!NewsITBone-GARR!fu-berlin.de!uni-berlin.de!213-203-244-156.kunde.vdserver.DE!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 24 Original-NNTP-Posting-Host: 213-203-244-156.kunde.vdserver.de (213.203.244.156) Original-X-Trace: news.uni-berlin.de 1070489445 69889877 213.203.244.156 ([73968] 10430) User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.2 (gnu/linux) Cancel-Lock: sha1:YaWYgzRYsHY45Sl4JLHAEce4bM8= Original-Xref: shelby.stanford.edu gnu.emacs.help:118968 Original-To: help-gnu-emacs@gnu.org 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:14906 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:14906 Steven Wu writes: > I am in the process of switching to eshell, and my experience so far > has been good, except one thing that I made a function by "(defun > eshell/vi...) like the one Kai did, but after finding the file, it > runs viper mode, (hay, that is what vi supposted to do right). The > problem is that I cannot get the eshell to know my lisp function vi. I > put the elisp into a file, and load-in in .emacs, and it took no > effect. I wonder what is the trick to get eshell notics my functions. I have this: (defun eshell/vi (&rest args) "Invoke vi, flattening the arguments appropriately." (funcall 'find-file (apply 'eshell-flatten-and-stringify args))) (put 'eshell/vi 'eshell-no-numeric-conversions t) It seems to work without any further setup. If you copy the above verbatim, does it also work for you? What does your, failing, function look like? Kai