diff options
author | Leo Liu <sdl.web@gmail.com> | 2013-06-25 09:04:06 +0800 |
---|---|---|
committer | Leo Liu <sdl.web@gmail.com> | 2013-06-25 09:04:06 +0800 |
commit | f42d8237f706740d23f03ac8f1f5bc8b5d41afe5 (patch) | |
tree | 6043457775db92b66279faa56076a34e429fb764 /lisp/ido.el | |
parent | e31106e80a607df161daf91890fa4a4c816a0bdb (diff) | |
download | emacs-f42d8237f706740d23f03ac8f1f5bc8b5d41afe5.tar.gz |
* ido.el (ido-read-internal): Allow forward slash on windows.
Diffstat (limited to 'lisp/ido.el')
-rw-r--r-- | lisp/ido.el | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/ido.el b/lisp/ido.el index daa090d5d6f..4a4ecdcdb1a 100644 --- a/lisp/ido.el +++ b/lisp/ido.el @@ -2142,8 +2142,9 @@ If INITIAL is non-nil, it specifies the initial input string." (setq ido-set-default-item t))) ((string-match (if (memq system-type '(windows-nt ms-dos)) - "\\`[a-zA-Z]:\\|[\\][^\\]" - "/[^/]") ido-selected) + "\\`[a-zA-Z]:\\|[/\\][^/\\]" + "/[^/]") + ido-selected) (ido-set-current-directory (file-name-directory ido-selected)) (setq ido-set-default-item t)) |