[Top][All Lists]

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

Re: *shell* TAB *Completions* fooled by $PWD/

From: Kevin Rodgers
Subject: Re: *shell* TAB *Completions* fooled by $PWD/
Date: Wed, 10 Jul 2002 10:48:57 -0600
User-agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv: Gecko/20020406 Netscape6/6.2.2

Miles Bader wrote:

In general, you can't rely on completion in shell-mode to know about the
exact internal state of the shell process, since there's no way for
emacs to figure that out (it tries to track the current directory, since
that's very important, but even that can sometimes get messed up).  The
value of the PWD environment variable in emacs is just whatever value it
got at startup.

The shell.el directory tracking mechanism could be modified to update
the PWD environment variable as well as its internal variables.  But
unlike its internal variables, which can be local to the *shell* buffer,
the environment variable's value is shared via the global
process-environment Emacs variable.  (And we have to consider the case
when there's more than one *shell* buffer.)  But perhaps Shell mode could
make process-environment local to the *shell* buffer, so it would be free
to update PWD.
Kevin Rodgers <address@hidden>

reply via email to

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