Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

See How can I get emacs under windows to autocomplete paths in shell buffers using "\" instead of "/"?

I use emacs on windows 7, when calling M-x shell, emacs opens a DOS-Shell. The prompt displays current directory using backslashes "\".

Wenn I type a path, say "C:\Te" and press [TAB] for completion, emacs completes the path to "C:/Temp/". This is ok for wirking inside emacs, but not for calling DOS-Commands or executing binaries or batch files in DOS.

Example: Command C:/Temp/a.bat fails. C:\Temp\a.bat executes fine.

The situation in emacs 24.* seems to be even worse. I thought I'd be an experienced emacs user but couldn't find a way to apply the patch named above to emacs 24.*. comint mode seems to have changed a lot.

share|improve this question
    
1. Perhaps give an example of the behavior you expect vs what you see. 2. Just why do you want to use \ as a directory separator in this context? Is it, e.g., because you have yanked a Windows-style "path" that has such separators? If not, why not just use / as the separator, as in the rest of Emacs? –  Drew Oct 2 '13 at 2:16
    
@Drew The Windows command shell uses forward slash to introduce options, so paths containing it aren't properly interpreted. –  Aaron Miller Oct 3 '13 at 20:30
    
@AaronMiller -- Oh, right; silly me. –  Drew Oct 3 '13 at 21:07

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.