[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: emacs current directory when shell commands change directory
From: |
Dieter Wilhelm |
Subject: |
Re: emacs current directory when shell commands change directory |
Date: |
Sat, 21 Apr 2007 03:16:11 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.95 (gnu/linux) |
"David Strozzi" <david.strozzi@gmail.com> writes:
> Hi,
>
> I and others have a minor problem with emacs' shell mode. Suppose you
> use commands (namely aliases) that change the current directory.
> Emacs doesn't realize the working dir has changed. If one were to
> manually type 'cd dir', then 'M-x pwd' tells you the right dir. But
> after running an alias to 'cd dir', 'M-x pwd' think you're in the
> starting dir. This de-syncs tab completion, file opening, etc from
> where you 'really' are in the shell. Of course, the shell correctly
> changes the working dir when aliases are run.
>
> Any way around this?
I checked it with "M-x eshell" and in this shell it works.
--
Best wishes
H. Dieter Wilhelm
Darmstadt, Germany