changeset 107788:f8a150994b7a

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.
author jwiegley@gmail.com
date Tue, 06 Apr 2010 03:02:57 -0400
parents ded036b5364f
children 35cd0eacff45
files lisp/ChangeLog lisp/ido.el
diffstat 2 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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  <jwiegley@gmail.com>
+
+	* 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  <jwiegley@gmail.com>
 
 	* ido.el (ido-use-virtual-buffers, ido-virtual): Moved a ChangeLog
--- 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))))