From: Robert Pluim Date: Mon, 28 Aug 2017 07:49:56 +0000 (+0200) Subject: Use string-match to check for dotfiles in ido X-Git-Tag: emacs-26.0.90~327 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=433cf5b2046f9b0a9f500dae1d072cc53f2a3c10;p=emacs.git Use string-match to check for dotfiles in ido * lisp/ido.el (ido-make-file-list): Use string-match to check for dotfiles instead of substring, as when using tramp simplified syntax ido-temp-list may contain empty strings. Copyright-paperwork-exempt: yes --- diff --git a/lisp/ido.el b/lisp/ido.el index defb744201d..5ba168b105a 100644 --- a/lisp/ido.el +++ b/lisp/ido.el @@ -3678,7 +3678,7 @@ in this list." ido-temp-list))))) (ido-to-end ;; move . files to end (delq nil (mapcar - (lambda (x) (if (string-equal (substring x 0 1) ".") x)) + (lambda (x) (if (string-match "^\\." x) x)) ido-temp-list))) (if (and default (member default ido-temp-list)) (if (or ido-rotate-temp ido-rotate-file-list-default)