aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo Liu2015-12-25 19:10:13 +0800
committerLeo Liu2015-12-25 19:10:13 +0800
commitb2b84b166a7ac454850ab4832ef40a41dce74cf7 (patch)
tree436c4006235b2f94257ab63af3751194ec7a1eeb
parent3e7f6338d8c32bf4676ee4af036459b25efc3d9b (diff)
downloademacs-b2b84b166a7ac454850ab4832ef40a41dce74cf7.tar.gz
emacs-b2b84b166a7ac454850ab4832ef40a41dce74cf7.zip
* ido.el (ido-add-virtual-buffers-to-list): Use bookmark-get-filename.
-rw-r--r--lisp/ido.el10
1 files changed, 4 insertions, 6 deletions
diff --git a/lisp/ido.el b/lisp/ido.el
index 1415b27a3a7..e2a916534eb 100644
--- a/lisp/ido.el
+++ b/lisp/ido.el
@@ -3491,14 +3491,12 @@ This is to make them appear as if they were \"virtual buffers\"."
3491 ;; the file which the user might thought was still open. 3491 ;; the file which the user might thought was still open.
3492 (unless recentf-mode (recentf-mode 1)) 3492 (unless recentf-mode (recentf-mode 1))
3493 (setq ido-virtual-buffers nil) 3493 (setq ido-virtual-buffers nil)
3494 (let ((bookmarks (and (boundp 'bookmark-alist) 3494 (let (name)
3495 bookmark-alist))
3496 name)
3497 (dolist (head (append 3495 (dolist (head (append
3498 recentf-list 3496 recentf-list
3499 (delq nil (mapcar (lambda (bookmark) 3497 (and (fboundp 'bookmark-get-filename)
3500 (cdr (assoc 'filename bookmark))) 3498 (delq nil (mapcar #'bookmark-get-filename
3501 bookmarks)))) 3499 (bound-and-true-p bookmark-alist))))))
3502 (setq name (file-name-nondirectory head)) 3500 (setq name (file-name-nondirectory head))
3503 ;; In case HEAD is a directory with trailing /. See bug#14552. 3501 ;; In case HEAD is a directory with trailing /. See bug#14552.
3504 (when (equal name "") 3502 (when (equal name "")