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

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

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


From: Dan Jacobson
Subject: Re: *shell* TAB *Completions* fooled by $PWD/
Date: 10 Jul 2002 14:03:58 +0800
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

>>>>> "M" == Miles Bader <address@hidden> writes:

M> address@hidden (Dan Jacobson) writes:
>> $ cd; emacs -q
>> <escape> x s h e l l <return> c d SPC . . <return> m o r e SPC $ P W D / 
>> <tab>
>> Well, are the *Completions* those of .. or ~ ?

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

OK, then it should admit (in the minibuffer) that it might not know
what it is/would be doing at this point, instead of confidently giving
a list that is probably wrong, and thus fooling the user into thinking
various files are/aren't in the current dir.
-- 
http://jidanni.org/ Taiwan(04)25854780



reply via email to

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