diff options
| author | Kim F. Storm | 2011-01-13 17:26:40 +0100 |
|---|---|---|
| committer | Kim F. Storm | 2011-01-13 17:26:40 +0100 |
| commit | 821f936d1c04df2f9ccaf6307b220d7cbe0e76c7 (patch) | |
| tree | 2efe9f6b046b70629f351d1cf565de7d15d14887 | |
| parent | f754f8984677a1a0ab7f3b97a55891edb142e9aa (diff) | |
| download | emacs-821f936d1c04df2f9ccaf6307b220d7cbe0e76c7.tar.gz emacs-821f936d1c04df2f9ccaf6307b220d7cbe0e76c7.zip | |
* ido.el (ido-may-cache-directory): Move "too-big" check later.
(ido-next-match, ido-prev-match): Fix stray reordering of matching
items when cycling through the matches.
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/ido.el | 12 |
2 files changed, 12 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index b7e1ed62d7b..eafb096f499 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2011-01-13 Kim F. Storm <storm@cua.dk> | ||
| 2 | |||
| 3 | * ido.el (ido-may-cache-directory): Move "too-big" check later. | ||
| 4 | (ido-next-match, ido-prev-match): Fix stray reordering of matching | ||
| 5 | items when cycling through the matches. | ||
| 6 | |||
| 1 | 2011-01-13 Tassilo Horn <tassilo@member.fsf.org> | 7 | 2011-01-13 Tassilo Horn <tassilo@member.fsf.org> |
| 2 | 8 | ||
| 3 | * dired-x.el (dired-omit-verbose): New defcustom that allows | 9 | * dired-x.el (dired-omit-verbose): New defcustom that allows |
diff --git a/lisp/ido.el b/lisp/ido.el index 84ae93142b4..502dd39e327 100644 --- a/lisp/ido.el +++ b/lisp/ido.el | |||
| @@ -1289,8 +1289,6 @@ Only used if `ido-use-virtual-buffers' is non-nil.") | |||
| 1289 | (defun ido-may-cache-directory (&optional dir) | 1289 | (defun ido-may-cache-directory (&optional dir) |
| 1290 | (setq dir (or dir ido-current-directory)) | 1290 | (setq dir (or dir ido-current-directory)) |
| 1291 | (cond | 1291 | (cond |
| 1292 | ((ido-directory-too-big-p dir) | ||
| 1293 | nil) | ||
| 1294 | ((and (ido-is-root-directory dir) | 1292 | ((and (ido-is-root-directory dir) |
| 1295 | (or ido-enable-tramp-completion | 1293 | (or ido-enable-tramp-completion |
| 1296 | (memq system-type '(windows-nt ms-dos)))) | 1294 | (memq system-type '(windows-nt ms-dos)))) |
| @@ -1299,6 +1297,8 @@ Only used if `ido-use-virtual-buffers' is non-nil.") | |||
| 1299 | (ido-cache-unc-valid)) | 1297 | (ido-cache-unc-valid)) |
| 1300 | ((ido-is-ftp-directory dir) | 1298 | ((ido-is-ftp-directory dir) |
| 1301 | (ido-cache-ftp-valid)) | 1299 | (ido-cache-ftp-valid)) |
| 1300 | ((ido-directory-too-big-p dir) | ||
| 1301 | nil) | ||
| 1302 | (t t))) | 1302 | (t t))) |
| 1303 | 1303 | ||
| 1304 | (defun ido-pp (list &optional sep) | 1304 | (defun ido-pp (list &optional sep) |
| @@ -3072,8 +3072,8 @@ If repeated, insert text from buffer instead." | |||
| 3072 | (if ido-matches | 3072 | (if ido-matches |
| 3073 | (let ((next (cadr ido-matches))) | 3073 | (let ((next (cadr ido-matches))) |
| 3074 | (setq ido-cur-list (ido-chop ido-cur-list next)) | 3074 | (setq ido-cur-list (ido-chop ido-cur-list next)) |
| 3075 | (setq ido-rescan t) | 3075 | (setq ido-matches (ido-chop ido-matches next)) |
| 3076 | (setq ido-rotate t)))) | 3076 | (setq ido-rescan nil)))) |
| 3077 | 3077 | ||
| 3078 | (defun ido-prev-match () | 3078 | (defun ido-prev-match () |
| 3079 | "Put last element of `ido-matches' at the front of the list." | 3079 | "Put last element of `ido-matches' at the front of the list." |
| @@ -3081,8 +3081,8 @@ If repeated, insert text from buffer instead." | |||
| 3081 | (if ido-matches | 3081 | (if ido-matches |
| 3082 | (let ((prev (car (last ido-matches)))) | 3082 | (let ((prev (car (last ido-matches)))) |
| 3083 | (setq ido-cur-list (ido-chop ido-cur-list prev)) | 3083 | (setq ido-cur-list (ido-chop ido-cur-list prev)) |
| 3084 | (setq ido-rescan t) | 3084 | (setq ido-matches (ido-chop ido-matches prev)) |
| 3085 | (setq ido-rotate t)))) | 3085 | (setq ido-rescan nil)))) |
| 3086 | 3086 | ||
| 3087 | (defun ido-next-match-dir () | 3087 | (defun ido-next-match-dir () |
| 3088 | "Find next directory in match list. | 3088 | "Find next directory in match list. |