Mercurial > emacs
changeset 74926:d2cfe143b802
(ido-set-matches-1): Never put current buffer first if
there are other matches.
author | Kim F. Storm <storm@cua.dk> |
---|---|
date | Wed, 27 Dec 2006 00:26:54 +0000 |
parents | c5b3e0d3ccc5 |
children | a53153ed1c2b |
files | lisp/ido.el |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/ido.el Wed Dec 27 00:26:39 2006 +0000 +++ b/lisp/ido.el Wed Dec 27 00:26:54 2006 +0000 @@ -3579,6 +3579,9 @@ (/= (aref name 0) ?.))) (string-match re name)) (cond + ((and (eq ido-cur-item 'buffer) + (string= name (buffer-name ido-entry-buffer))) + (setq matches (cons item matches))) ((and full-re (string-match full-re name)) (setq full-matches (cons item full-matches))) ((and suffix-re (string-match suffix-re name))