From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: FCC Newsgroups: gmane.emacs.help Subject: Re: file name Completion in Shell (cmd.exe) on Emacs (MS Windows) Date: Wed, 21 Jul 2004 21:03:25 +0200 Organization: UPC Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <40fc38f9$0$23869$14726298@news.sunsite.dk> <40feac24$0$66471$14726298@news.sunsite.dk> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1090436854 27224 80.91.224.253 (21 Jul 2004 19:07:34 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 21 Jul 2004 19:07:34 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jul 21 21:07:23 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BnMR0-0003Lk-00 for ; Wed, 21 Jul 2004 21:07:22 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BnMTn-00073Q-N6 for geh-help-gnu-emacs@m.gmane.org; Wed, 21 Jul 2004 15:10:15 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!t-online.de!irazu.switch.ch!switch.ch!news.rediris.es!news.cesca.es!news.upc.es!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 46 Original-NNTP-Posting-Host: adca05.upc.es Original-X-Trace: defalla.upc.es 1090436607 17909 147.83.51.18 (21 Jul 2004 19:03:27 GMT) Original-X-Complaints-To: newsmngr@upc.es Original-NNTP-Posting-Date: 21 Jul 2004 19:03:27 GMT User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040616 X-Accept-Language: en-us, en, es-es, tr In-Reply-To: <40feac24$0$66471$14726298@news.sunsite.dk> Original-Xref: shelby.stanford.edu gnu.emacs.help:124394 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 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:19731 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:19731 Sandip Chitale said the following on 7/21/2004 7:47 PM: > > However, the code in shell-mode (shell.el) does not seem to *correctly* > switch the notion of default-directory for the *shell* buffer when drive > switching command is issued (well, it attempts to deal with the issue but > defun cd in files.el seems to have a bug (related to filename-abosolute-p > predicate) which prevents this from working). > > The file completion works relative to default-directory of the buffer. Thus > the file completions I get are not relative to the new drive and hence new > current directory. > Here is what I have on GNU Emacs 21.3.1 (i386-msvc-nt5.1.2600) of 2003-03-28 on buffy using M-x eshell RET: Welcome to the Emacs shell c:/windows $ e: e:/Work/mpm4bv $ cd .. e:/Work $ c: c:/windows $ e: e:/Work $ c: c:/windows $ e: e:/Work $ cd mpm4bv/ e:/Work/mpm4bv $ c: c:/windows $ cd WinSxS/ c:/windows/WinSxS $ File name completion works fine with eshell-mode, but not with shell-mode as you have pointed out. Personally I have quit using shell-mode long time ago, because eshell-mode seemed to respond faster to commands like C-c C-c than shell-mode. I probably had a couple of other reasons, which I do not remember well now. I suggest you use eshell-mode unless you have time to fix (all the problems with) shell-mode. FCC === Any philosophy that can be put in a nutshell belongs there -Unknown