Search code examples
emacsemacs24

Navigating within directories with name having spaces


I am using Windows 7, EmacsW32 and Emacs23

I am trying to navigate inside a directory whose name has spaces with within Emacs. So, I try to navigate to it in Dired mode by:

C-x d

And then navigate to the directory name with spaces (e.g. My Documents) and the suggestion and auto-complete feature (upon pressing TAB) does not work. How can I navigate to folders and files within such directories without removing spaces?

UPDATE: I tried few other paths with spaces in some directories, and it works. i don't know in which situations it works and fails. It works for Program Files but fails for My Documents.


Solution

  • The problem is not with folders with spaces in it. The problem is only with My Documents, My Videos and similarly named folders.

    When I go in the windows file browser and check the path of the folder My Documents, it appears as C:/..../Documents/...

    So, I tried to open Documents instead of My Documents in Emacs and it works. Now I am able to access my files under Documents.