From: Leo Liu Date: Tue, 25 Jun 2013 01:04:06 +0000 (+0800) Subject: * ido.el (ido-read-internal): Allow forward slash on windows. X-Git-Tag: emacs-24.3.90~173^2^2~42^2~45^2~387^2~1992^2~52 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=f42d8237f706740d23f03ac8f1f5bc8b5d41afe5;p=emacs.git * ido.el (ido-read-internal): Allow forward slash on windows. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 60c1174f06d..41000df890d 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,7 @@ +2013-06-25 Leo Liu + + * ido.el (ido-read-internal): Allow forward slash on windows. + 2013-06-24 Lars Magne Ingebrigtsen * net/eww.el (eww): Start of strings is \\`, not ^. 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))