# HG changeset patch # User jwiegley@gmail.com # Date 1270537377 14400 # Node ID f8a150994b7a9ca0227455060322af7c38999d8d # Parent ded036b5364f8b761d9b60c2f6eaa52b25ecefe6 Fixed duplicate names appearing in IDO buffer list (using virtuals) * ido.el (ido-add-virtual-buffers-to-list): Fixed duplicated names appearing in buffer list (if a live buffer name matched a recentf file basename). Should use uniqify to offer a real solution. diff -r ded036b5364f -r f8a150994b7a lisp/ChangeLog --- a/lisp/ChangeLog Mon Apr 05 23:38:56 2010 -0400 +++ b/lisp/ChangeLog Tue Apr 06 03:02:57 2010 -0400 @@ -1,3 +1,9 @@ +2010-04-06 John Wiegley + + * ido.el (ido-add-virtual-buffers-to-list): Fixed duplicated names + appearing in buffer list (if a live buffer name matched a recentf + file basename). Should use uniqify to offer a real solution. + 2010-04-06 John Wiegley * ido.el (ido-use-virtual-buffers, ido-virtual): Moved a ChangeLog diff -r ded036b5364f -r f8a150994b7a lisp/ido.el --- a/lisp/ido.el Mon Apr 05 23:38:56 2010 -0400 +++ b/lisp/ido.el Tue Apr 06 03:02:57 2010 -0400 @@ -3408,6 +3408,7 @@ (and (setq name (file-name-nondirectory head)) (null (get-file-buffer head)) (not (assoc name ido-virtual-buffers)) + (not (member name ido-temp-list)) (not (ido-ignore-item-p name ido-ignore-buffers)) ;;(file-exists-p head) (push (cons name head) ido-virtual-buffers))))