From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Unknown Newsgroups: gmane.emacs.help Subject: Re: eshell: annoying filename completion Date: Wed, 05 Mar 2003 03:29:26 GMT Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <1c58a7c3.0303041407.c629104@posting.google.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: main.gmane.org 1046835067 15150 80.91.224.249 (5 Mar 2003 03:31:07 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 5 Mar 2003 03:31:07 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Wed Mar 05 04:31:06 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18qPc9-0003vC-00 for ; Wed, 05 Mar 2003 04:30:41 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18qPbp-0004Se-03 for gnu-help-gnu-emacs@m.gmane.org; Tue, 04 Mar 2003 22:30:21 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!nntp.cs.ubc.ca!cyclone.bc.net!sjc70.webusenet.com!news.webusenet.com!news03.bloor.is.net.cable.rogers.com!news04.bloor.is.net.cable.rogers.com.POSTED!not-for-mail Original-From: Le Wang Original-Newsgroups: gnu.emacs.help Original-Lines: 32 User-Agent: KNode/0.7.1 Original-NNTP-Posting-Host: 24.192.182.203 Original-X-Complaints-To: abuse@rogers.com Original-X-Trace: news04.bloor.is.net.cable.rogers.com 1046834966 24.192.182.203 (Tue, 04 Mar 2003 22:29:26 EST) Original-NNTP-Posting-Date: Tue, 04 Mar 2003 22:29:26 EST Original-Xref: shelby.stanford.edu gnu.emacs.help:110831 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:7332 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:7332 Barman Brakjoller wrote: > Imagine you have this: > > ~/tmp/esh $ ls > long_file_name.gif > > and want to do this > > ~/tmp/esh $ rm long_ > > That works ok, eshell completes the filename. But what if I want to > rename that file to long_file_name.jpeg? This does not work as I want: > > ~/tmp/esh $ mv long_ lo again, nothing happens, eshell just beeps at me> > > I guess eshell is trying to be smart here, but in this case it is too > smart for my taste... :) > > Any variable I might want to customize and any drawbacks? I don't use eshell much myself, but I know I have to reuse the same filename all the time, usually slightly modified the second time. So this behaviour would be too smart for me too. ;) I don't know if you know about dabbrev, and hippie-expand (the latter is the superset of the former). I think these can be used to easily do what you want, and they'll be generally useful in other major modes too. -- Le