aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Pluim2017-08-28 09:49:56 +0200
committerMichael Albinus2017-08-28 09:49:56 +0200
commit433cf5b2046f9b0a9f500dae1d072cc53f2a3c10 (patch)
treec72641ba443f909b85179aaa8a5622628893a29c
parent043a84702f3002d711784e5fe97c9ea8690b4cfa (diff)
downloademacs-433cf5b2046f9b0a9f500dae1d072cc53f2a3c10.tar.gz
emacs-433cf5b2046f9b0a9f500dae1d072cc53f2a3c10.zip
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
-rw-r--r--lisp/ido.el2
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."
3678 ido-temp-list))))) 3678 ido-temp-list)))))
3679 (ido-to-end ;; move . files to end 3679 (ido-to-end ;; move . files to end
3680 (delq nil (mapcar 3680 (delq nil (mapcar
3681 (lambda (x) (if (string-equal (substring x 0 1) ".") x)) 3681 (lambda (x) (if (string-match "^\\." x) x))
3682 ido-temp-list))) 3682 ido-temp-list)))
3683 (if (and default (member default ido-temp-list)) 3683 (if (and default (member default ido-temp-list))
3684 (if (or ido-rotate-temp ido-rotate-file-list-default) 3684 (if (or ido-rotate-temp ido-rotate-file-list-default)