Mercurial > emacs
changeset 107122:df3df0622e73
* iswitchb.el (iswitchb-completions): Revert last change.
author | Chong Yidong <cyd@stupidchicken.com> |
---|---|
date | Wed, 10 Feb 2010 04:19:32 -0500 |
parents | 68c91c0692df |
children | 12a12a93b1a3 |
files | lisp/ChangeLog lisp/iswitchb.el |
diffstat | 2 files changed, 9 insertions(+), 20 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/ChangeLog Wed Feb 10 09:46:54 2010 +0100 +++ b/lisp/ChangeLog Wed Feb 10 04:19:32 2010 -0500 @@ -1,3 +1,7 @@ +2010-02-10 Chong Yidong <cyd@stupidchicken.com> + + * iswitchb.el (iswitchb-completions): Revert last change. + 2010-02-10 Michael Albinus <michael.albinus@gmx.de> * ls-lisp.el (ls-lisp-insert-directory): Wen WILDCARD-REGEXP and
--- a/lisp/iswitchb.el Wed Feb 10 09:46:54 2010 +0100 +++ b/lisp/iswitchb.el Wed Feb 10 04:19:32 2010 -0500 @@ -1274,7 +1274,7 @@ ;; consult the list of past visited files, to see if we can find ;; the file which the user might thought was still open. (when (and iswitchb-use-virtual-buffers (null comps) - (or recentf-list bookmark-alist)) + recentf-list) (setq iswitchb-virtual-buffers nil) (let ((head recentf-list) name) (while head @@ -1289,30 +1289,15 @@ (setq iswitchb-virtual-buffers (cons (cons name (car head)) iswitchb-virtual-buffers))) - (setq head (cdr head)))) - (let ((head bookmark-alist) name path) - (while head - (if (and (setq path (cdr (assq 'filename (cdar head)))) - (setq name (file-name-nondirectory path)) - (string-match (if iswitchb-regexp - iswitchb-text - (regexp-quote iswitchb-text)) name) - (null (get-file-buffer path)) - (not (assoc name iswitchb-virtual-buffers)) - (not (iswitchb-ignore-buffername-p name)) - (file-exists-p path)) - (setq iswitchb-virtual-buffers - (cons (cons name path) - iswitchb-virtual-buffers))) - (setq head (cdr head)))) - (setq iswitchb-virtual-buffers (nreverse iswitchb-virtual-buffers) - comps (mapcar 'car iswitchb-virtual-buffers)) + (setq head (cdr head))) + (setq iswitchb-virtual-buffers (nreverse iswitchb-virtual-buffers) + comps (mapcar 'car iswitchb-virtual-buffers)) (let ((comp comps)) (while comp (put-text-property 0 (length (car comp)) 'face 'iswitchb-virtual-matches (car comp)) - (setq comp (cdr comp))))) + (setq comp (cdr comp)))))) (cond ((null comps) (format " %sNo match%s" open-bracket-determined