|
From: | Lennart Borgman |
Subject: | Re: Shell completion on w32 uses "/" instead of "\" |
Date: | Wed, 20 Dec 2006 21:50:07 +0100 |
User-agent: | Thunderbird 1.5.0.9 (Windows/20061207) |
Lennart Borgman wrote:
Can you please explain more exactly what problems you see with my patch? It autocompletes in the shell buffer with "\" if the shell used has w32-shell-dos-semantics. When do you not want this?Why do you think it has to be customizable?
After taking a pause I see that you are right. There are problems with my patch. I was somehow assuming that the buffer local value of shell-file-name could not be propagated further. I just thought about the command you send to the shell, but you can of course do other things.
However an easy way to fix this would be to have a new variable, buffer-shell-file-name, that is always buffer local and with a global value that is always nil. Setting this whenever starting a shell process and checking for this in w32-shell-dos-semantics would be enough.
The reason I prefer this way is that there might more problems with this. Because of this I believe that it would be a buffer local variable holding the value that shell-file-name had when the buffer was setup.
[Prev in Thread] | Current Thread | [Next in Thread] |