diff options
| author | Chong Yidong | 2010-02-10 04:19:32 -0500 |
|---|---|---|
| committer | Chong Yidong | 2010-02-10 04:19:32 -0500 |
| commit | e6d23bb58018ffe2cdaf5faa01c245c1a49bd0f8 (patch) | |
| tree | 7b3da19c73d141cbe1e6458ebc44954280dc0795 | |
| parent | a8e4290b05511059af4e48988e58cbda85f5cd59 (diff) | |
| download | emacs-e6d23bb58018ffe2cdaf5faa01c245c1a49bd0f8.tar.gz emacs-e6d23bb58018ffe2cdaf5faa01c245c1a49bd0f8.zip | |
* iswitchb.el (iswitchb-completions): Revert last change.
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/iswitchb.el | 25 |
2 files changed, 9 insertions, 20 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index d1adb4be590..b0d722043de 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2010-02-10 Chong Yidong <cyd@stupidchicken.com> | ||
| 2 | |||
| 3 | * iswitchb.el (iswitchb-completions): Revert last change. | ||
| 4 | |||
| 1 | 2010-02-10 Michael Albinus <michael.albinus@gmx.de> | 5 | 2010-02-10 Michael Albinus <michael.albinus@gmx.de> |
| 2 | 6 | ||
| 3 | * ls-lisp.el (ls-lisp-insert-directory): Wen WILDCARD-REGEXP and | 7 | * ls-lisp.el (ls-lisp-insert-directory): Wen WILDCARD-REGEXP and |
diff --git a/lisp/iswitchb.el b/lisp/iswitchb.el index ee06db6f78f..ea4b00dc90d 100644 --- a/lisp/iswitchb.el +++ b/lisp/iswitchb.el | |||
| @@ -1274,7 +1274,7 @@ Modified from `icomplete-completions'." | |||
| 1274 | ;; consult the list of past visited files, to see if we can find | 1274 | ;; consult the list of past visited files, to see if we can find |
| 1275 | ;; the file which the user might thought was still open. | 1275 | ;; the file which the user might thought was still open. |
| 1276 | (when (and iswitchb-use-virtual-buffers (null comps) | 1276 | (when (and iswitchb-use-virtual-buffers (null comps) |
| 1277 | (or recentf-list bookmark-alist)) | 1277 | recentf-list) |
| 1278 | (setq iswitchb-virtual-buffers nil) | 1278 | (setq iswitchb-virtual-buffers nil) |
| 1279 | (let ((head recentf-list) name) | 1279 | (let ((head recentf-list) name) |
| 1280 | (while head | 1280 | (while head |
| @@ -1289,30 +1289,15 @@ Modified from `icomplete-completions'." | |||
| 1289 | (setq iswitchb-virtual-buffers | 1289 | (setq iswitchb-virtual-buffers |
| 1290 | (cons (cons name (car head)) | 1290 | (cons (cons name (car head)) |
| 1291 | iswitchb-virtual-buffers))) | 1291 | iswitchb-virtual-buffers))) |
| 1292 | (setq head (cdr head)))) | 1292 | (setq head (cdr head))) |
| 1293 | (let ((head bookmark-alist) name path) | 1293 | (setq iswitchb-virtual-buffers (nreverse iswitchb-virtual-buffers) |
| 1294 | (while head | 1294 | comps (mapcar 'car iswitchb-virtual-buffers)) |
| 1295 | (if (and (setq path (cdr (assq 'filename (cdar head)))) | ||
| 1296 | (setq name (file-name-nondirectory path)) | ||
| 1297 | (string-match (if iswitchb-regexp | ||
| 1298 | iswitchb-text | ||
| 1299 | (regexp-quote iswitchb-text)) name) | ||
| 1300 | (null (get-file-buffer path)) | ||
| 1301 | (not (assoc name iswitchb-virtual-buffers)) | ||
| 1302 | (not (iswitchb-ignore-buffername-p name)) | ||
| 1303 | (file-exists-p path)) | ||
| 1304 | (setq iswitchb-virtual-buffers | ||
| 1305 | (cons (cons name path) | ||
| 1306 | iswitchb-virtual-buffers))) | ||
| 1307 | (setq head (cdr head)))) | ||
| 1308 | (setq iswitchb-virtual-buffers (nreverse iswitchb-virtual-buffers) | ||
| 1309 | comps (mapcar 'car iswitchb-virtual-buffers)) | ||
| 1310 | (let ((comp comps)) | 1295 | (let ((comp comps)) |
| 1311 | (while comp | 1296 | (while comp |
| 1312 | (put-text-property 0 (length (car comp)) | 1297 | (put-text-property 0 (length (car comp)) |
| 1313 | 'face 'iswitchb-virtual-matches | 1298 | 'face 'iswitchb-virtual-matches |
| 1314 | (car comp)) | 1299 | (car comp)) |
| 1315 | (setq comp (cdr comp))))) | 1300 | (setq comp (cdr comp)))))) |
| 1316 | 1301 | ||
| 1317 | (cond ((null comps) (format " %sNo match%s" | 1302 | (cond ((null comps) (format " %sNo match%s" |
| 1318 | open-bracket-determined | 1303 | open-bracket-determined |