aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim F. Storm2003-01-21 22:13:23 +0000
committerKim F. Storm2003-01-21 22:13:23 +0000
commit4d80e3ae6d9a732d47cbe6d6dba9ddcaa2becf11 (patch)
tree20ef3513884a8455455911577589a77a4998d287
parentffa498693bf1c623dc934a6b3ba1a8b7e0dd9394 (diff)
downloademacs-4d80e3ae6d9a732d47cbe6d6dba9ddcaa2becf11.tar.gz
emacs-4d80e3ae6d9a732d47cbe6d6dba9ddcaa2becf11.zip
(ido-make-file-list, ido-make-dir-list): Don't move
visited directories to end of list; it's the wrong thing to do if we want to find a file or directory in such directories.
-rw-r--r--lisp/ido.el9
1 files changed, 3 insertions, 6 deletions
diff --git a/lisp/ido.el b/lisp/ido.el
index 169c2605af0..c4444e31c3c 100644
--- a/lisp/ido.el
+++ b/lisp/ido.el
@@ -2713,7 +2713,9 @@ for first matching file."
2713 (let ((default-directory ido-current-directory)) 2713 (let ((default-directory ido-current-directory))
2714 (ido-to-end ;; move ftp hosts and visited files to end 2714 (ido-to-end ;; move ftp hosts and visited files to end
2715 (delq nil (mapcar 2715 (delq nil (mapcar
2716 (lambda (x) (if (or (string-match "..:\\'" x) (get-file-buffer x)) x)) 2716 (lambda (x) (if (or (string-match "..:\\'" x)
2717 (and (not (ido-final-slash x))
2718 (get-file-buffer x))) x))
2717 ido-temp-list)))) 2719 ido-temp-list))))
2718 (ido-to-end ;; move . files to end 2720 (ido-to-end ;; move . files to end
2719 (delq nil (mapcar 2721 (delq nil (mapcar
@@ -2757,11 +2759,6 @@ for first matching file."
2757 ;; directory names in this list. 2759 ;; directory names in this list.
2758 (let ((ido-temp-list (ido-make-dir-list1 ido-current-directory))) 2760 (let ((ido-temp-list (ido-make-dir-list1 ido-current-directory)))
2759 (setq ido-temp-list (ido-sort-list ido-temp-list)) 2761 (setq ido-temp-list (ido-sort-list ido-temp-list))
2760 (let ((default-directory ido-current-directory))
2761 (ido-to-end ;; move visited files to end
2762 (delq nil (mapcar
2763 (lambda (x) (if (get-file-buffer x) x))
2764 ido-temp-list))))
2765 (ido-to-end ;; move . files to end 2762 (ido-to-end ;; move . files to end
2766 (delq nil (mapcar 2763 (delq nil (mapcar
2767 (lambda (x) (if (string-equal (substring x 0 1) ".") x)) 2764 (lambda (x) (if (string-equal (substring x 0 1) ".") x))