diff options
author | Robert Pluim <rpluim@gmail.com> | 2017-08-28 09:49:56 +0200 |
---|---|---|
committer | Michael Albinus <michael.albinus@gmx.de> | 2017-08-28 09:49:56 +0200 |
commit | 433cf5b2046f9b0a9f500dae1d072cc53f2a3c10 (patch) | |
tree | c72641ba443f909b85179aaa8a5622628893a29c /lisp/ido.el | |
parent | 043a84702f3002d711784e5fe97c9ea8690b4cfa (diff) | |
download | emacs-433cf5b2046f9b0a9f500dae1d072cc53f2a3c10.tar.gz |
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
Diffstat (limited to 'lisp/ido.el')
-rw-r--r-- | lisp/ido.el | 2 |
1 files changed, 1 insertions, 1 deletions
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) |