|
From: | FCC |
Subject: | Re: file name Completion in Shell (cmd.exe) on Emacs (MS Windows) |
Date: | Wed, 21 Jul 2004 21:03:25 +0200 |
User-agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040616 |
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
[Prev in Thread] | Current Thread | [Next in Thread] |