help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: emacs current directory when shell commands change


From: Peter Dyballa
Subject: Re: emacs current directory when shell commands change
Date: Tue, 24 Apr 2007 10:51:50 +0200


Am 24.04.2007 um 02:38 schrieb David Strozzi:

So it seems emacs is interpreting all these aliases as being
equivalent to a bare 'cd', which of course moved to ~.  Maybe I
mis-understood what shell-cd-regexp does....

IMO this is the case. The variable is meant to make alias names of pushd or popd be the same as pushd or popd. When your alias cder is a cd plus an argument, a directory's name, then GNU Emacs fails: it sees cd – and this means: go home!

The work-around would be to have a stack of directories with you and you just pop the one you want to go to. (T)csh has the ~/.cshdirs file (or the file $dirsfile is pointing to). Bash has a very comfortable dirs command, but I don't see how its DIRSTACK is filled at startup ... by simple assignment?

--
Greetings

  Pete

To most people solutions mean finding the answers. But to chemists solutions
are things that are still all mixed up.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]