diff options
author | John Wiegley <jwiegley@gmail.com> | 2010-04-06 03:02:57 -0400 |
---|---|---|
committer | John Wiegley <jwiegley@gmail.com> | 2010-04-06 03:02:57 -0400 |
commit | 2a07afc5fe9acb37ed00a65463357b61da8c5cb1 (patch) | |
tree | 790f6db548ddf0ea0f66a3cda44be68cadf2d74e | |
parent | f9a27d86155b3f436daa755e2b9d89c71afa8e8d (diff) | |
download | emacs-2a07afc5fe9acb37ed00a65463357b61da8c5cb1.tar.gz |
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.
-rw-r--r-- | lisp/ChangeLog | 6 | ||||
-rw-r--r-- | lisp/ido.el | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 5cd9e08d5e7..9d2142fd5f4 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,11 @@ 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 comment to code, and added a :version tag. (ido-virtual-buffers): Moved defvar to fix byte-compiler warning. diff --git a/lisp/ido.el b/lisp/ido.el index 53b18374d1e..8d43dec1f65 100644 --- a/lisp/ido.el +++ b/lisp/ido.el @@ -3408,6 +3408,7 @@ This is to make them appear as if they were \"virtual buffers\"." (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)))) |