[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 433cf5b: Use string-match to check for dotfiles in
From: |
Michael Albinus |
Subject: |
[Emacs-diffs] master 433cf5b: Use string-match to check for dotfiles in ido |
Date: |
Mon, 28 Aug 2017 03:50:04 -0400 (EDT) |
branch: master
commit 433cf5b2046f9b0a9f500dae1d072cc53f2a3c10
Author: Robert Pluim <address@hidden>
Commit: Michael Albinus <address@hidden>
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
---
lisp/ido.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/ido.el b/lisp/ido.el
index defb744..5ba168b 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)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master 433cf5b: Use string-match to check for dotfiles in ido,
Michael Albinus <=