aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Wiegley2010-04-06 03:02:57 -0400
committerJohn Wiegley2010-04-06 03:02:57 -0400
commit2a07afc5fe9acb37ed00a65463357b61da8c5cb1 (patch)
tree790f6db548ddf0ea0f66a3cda44be68cadf2d74e
parentf9a27d86155b3f436daa755e2b9d89c71afa8e8d (diff)
downloademacs-2a07afc5fe9acb37ed00a65463357b61da8c5cb1.tar.gz
emacs-2a07afc5fe9acb37ed00a65463357b61da8c5cb1.zip
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/ChangeLog6
-rw-r--r--lisp/ido.el1
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 @@
12010-04-06 John Wiegley <jwiegley@gmail.com> 12010-04-06 John Wiegley <jwiegley@gmail.com>
2 2
3 * ido.el (ido-add-virtual-buffers-to-list): Fixed duplicated names
4 appearing in buffer list (if a live buffer name matched a recentf
5 file basename). Should use uniqify to offer a real solution.
6
72010-04-06 John Wiegley <jwiegley@gmail.com>
8
3 * ido.el (ido-use-virtual-buffers, ido-virtual): Moved a ChangeLog 9 * ido.el (ido-use-virtual-buffers, ido-virtual): Moved a ChangeLog
4 comment to code, and added a :version tag. 10 comment to code, and added a :version tag.
5 (ido-virtual-buffers): Moved defvar to fix byte-compiler warning. 11 (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\"."
3408 (and (setq name (file-name-nondirectory head)) 3408 (and (setq name (file-name-nondirectory head))
3409 (null (get-file-buffer head)) 3409 (null (get-file-buffer head))
3410 (not (assoc name ido-virtual-buffers)) 3410 (not (assoc name ido-virtual-buffers))
3411 (not (member name ido-temp-list))
3411 (not (ido-ignore-item-p name ido-ignore-buffers)) 3412 (not (ido-ignore-item-p name ido-ignore-buffers))
3412 ;;(file-exists-p head) 3413 ;;(file-exists-p head)
3413 (push (cons name head) ido-virtual-buffers)))) 3414 (push (cons name head) ido-virtual-buffers))))