From: Leo Liu Date: Mon, 24 Jun 2013 04:08:10 +0000 (+0800) Subject: Simplify last change to ido.el X-Git-Tag: emacs-24.3.90~173^2^2~42^2~45^2~387^2~1992^2~64 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=6c3e2c3de5ee118c8a8da180945ca63c059649e9;p=emacs.git Simplify last change to ido.el --- diff --git a/lisp/ido.el b/lisp/ido.el index 78d0112f4c4..daa090d5d6f 100644 --- a/lisp/ido.el +++ b/lisp/ido.el @@ -2141,9 +2141,9 @@ If INITIAL is non-nil, it specifies the initial input string." done t) (setq ido-set-default-item t))) - ((if (memq system-type '(windows-nt ms-dos)) - (string-match "\\`[a-zA-Z]:\\|[\\][^\\]" ido-selected) - (string-match "/[^/]" ido-selected)) + ((string-match (if (memq system-type '(windows-nt ms-dos)) + "\\`[a-zA-Z]:\\|[\\][^\\]" + "/[^/]") ido-selected) (ido-set-current-directory (file-name-directory ido-selected)) (setq ido-set-default-item t))