diff options
| author | Kim F. Storm | 2002-07-08 22:22:12 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2002-07-08 22:22:12 +0000 |
| commit | 9a08196a0b57e83d6faf02bbaee6cf717ef4bc0e (patch) | |
| tree | 18a662933439d15d95f1a82fc30813ea05417af5 | |
| parent | 9066a4d07034c3afacbfd251b95f1eedc02e28c2 (diff) | |
| download | emacs-9a08196a0b57e83d6faf02bbaee6cf717ef4bc0e.tar.gz emacs-9a08196a0b57e83d6faf02bbaee6cf717ef4bc0e.zip | |
(ido-make-merged-file-list): Move fully matching item to head of list.
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/ido.el | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 347fa503d0f..28c6463e424 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2002-07-09 Kim F. Storm <storm@cua.dk> | ||
| 2 | |||
| 3 | * ido.el (ido-make-merged-file-list): Move fully matching item to | ||
| 4 | head of list. | ||
| 5 | (ido-find-common-substring): Return substring instead of t. | ||
| 6 | |||
| 1 | 2002-07-08 Juanma Barranquero <lektu@terra.es> | 7 | 2002-07-08 Juanma Barranquero <lektu@terra.es> |
| 2 | 8 | ||
| 3 | * info.el (Info-directory-list): Fix docstring. | 9 | * info.el (Info-directory-list): Fix docstring. |
diff --git a/lisp/ido.el b/lisp/ido.el index 97aa0d24a09..049ef96cb08 100644 --- a/lisp/ido.el +++ b/lisp/ido.el | |||
| @@ -2511,6 +2511,12 @@ for first matching file." | |||
| 2511 | res t)))))) | 2511 | res t)))))) |
| 2512 | (if (and res (not (eq res t))) | 2512 | (if (and res (not (eq res t))) |
| 2513 | (setq res (ido-sort-merged-list res auto))) | 2513 | (setq res (ido-sort-merged-list res auto))) |
| 2514 | (when (and (or ido-rotate-temp ido-rotate-file-list-default) | ||
| 2515 | (> (length text) 0)) | ||
| 2516 | (let ((elt (assoc text res))) | ||
| 2517 | (unless (eq elt (car res)) | ||
| 2518 | (setq res (delq elt res)) | ||
| 2519 | (setq res (cons elt res))))) | ||
| 2514 | (message nil) | 2520 | (message nil) |
| 2515 | res)) | 2521 | res)) |
| 2516 | 2522 | ||