aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/ido.el38
2 files changed, 21 insertions, 21 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 62b158179ea..ae429db7a7a 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,6 +1,8 @@
12013-06-12 Glenn Morris <rgm@gnu.org> 12013-06-12 Glenn Morris <rgm@gnu.org>
2 2
3 * ido.el (ido-delete-ignored-files): Rewrite to avoid cl-lib. 3 * ido.el (ido-delete-ignored-files): Remove.
4 (ido-wide-find-dirs-or-files, ido-make-file-list-1):
5 Go back to calling ido-ignore-item-p directly.
4 6
52013-06-12 Eyal Lotem <eyal.lotem@gmail.com> (tiny change) 72013-06-12 Eyal Lotem <eyal.lotem@gmail.com> (tiny change)
6 8
diff --git a/lisp/ido.el b/lisp/ido.el
index b73094f2db3..14d1be5b763 100644
--- a/lisp/ido.el
+++ b/lisp/ido.el
@@ -3273,25 +3273,21 @@ for first matching file."
3273 cur nil))) 3273 cur nil)))
3274 res)) 3274 res))
3275 3275
3276(defun ido-delete-ignored-files (files)
3277 "Delete elements from list FILES that match `ido-ignore-item-p'."
3278 (delq nil
3279 (mapcar (lambda (name)
3280 (unless (ido-ignore-item-p name ido-ignore-files t) name))
3281 files)))
3282
3283(defun ido-wide-find-dirs-or-files (dir file &optional prefix finddir) 3276(defun ido-wide-find-dirs-or-files (dir file &optional prefix finddir)
3284 ;; As ido-run-find-command, but returns a list of cons pairs ("file" . "dir") 3277 ;; As ido-run-find-command, but returns a list of cons pairs ("file" . "dir")
3285 (let ((filenames 3278 (let ((filenames
3286 (ido-delete-ignored-files 3279 (delq nil
3287 (split-string 3280 (mapcar (lambda (name)
3288 (shell-command-to-string 3281 (unless (ido-ignore-item-p name ido-ignore-files t)
3289 (concat "find " 3282 name))
3290 (shell-quote-argument dir) 3283 (split-string
3291 (if ido-case-fold " -iname " " -name ") 3284 (shell-command-to-string
3292 (shell-quote-argument 3285 (concat "find "
3293 (concat (if prefix "" "*") file "*")) 3286 (shell-quote-argument dir)
3294 " -type " (if finddir "d" "f") " -print"))))) 3287 (if ido-case-fold " -iname " " -name ")
3288 (shell-quote-argument
3289 (concat (if prefix "" "*") file "*"))
3290 " -type " (if finddir "d" "f") " -print"))))))
3295 filename d f 3291 filename d f
3296 res) 3292 res)
3297 (while filenames 3293 (while filenames
@@ -3586,10 +3582,12 @@ This is to make them appear as if they were \"virtual buffers\"."
3586 ;; If MERGED is non-nil, each file is cons'ed with DIR 3582 ;; If MERGED is non-nil, each file is cons'ed with DIR
3587 (and (or (ido-is-tramp-root dir) (ido-is-unc-root dir) 3583 (and (or (ido-is-tramp-root dir) (ido-is-unc-root dir)
3588 (file-directory-p dir)) 3584 (file-directory-p dir))
3589 (mapcar 3585 (delq nil
3590 (lambda (name) (if merged (cons name dir) name)) 3586 (mapcar
3591 (ido-delete-ignored-files 3587 (lambda (name)
3592 (ido-file-name-all-completions dir))))) 3588 (if (not (ido-ignore-item-p name ido-ignore-files t))
3589 (if merged (cons name dir) name)))
3590 (ido-file-name-all-completions dir)))))
3593 3591
3594(defun ido-make-file-list (default) 3592(defun ido-make-file-list (default)
3595 ;; Return the current list of files. 3593 ;; Return the current list of files.