]> git.eshelyaron.com Git - emacs.git/commitdiff
* ido.el (ido-add-virtual-buffers-to-list): Use bookmark-get-filename.
authorLeo Liu <sdl.web@gmail.com>
Fri, 25 Dec 2015 11:10:13 +0000 (19:10 +0800)
committerLeo Liu <sdl.web@gmail.com>
Fri, 25 Dec 2015 11:10:13 +0000 (19:10 +0800)
lisp/ido.el

index 1415b27a3a70f7a5d9660801eb318353f005aaa6..e2a916534eb6acafc57b5646a9ea267822f8ffa4 100644 (file)
@@ -3491,14 +3491,12 @@ This is to make them appear as if they were \"virtual buffers\"."
   ;; the file which the user might thought was still open.
   (unless recentf-mode (recentf-mode 1))
   (setq ido-virtual-buffers nil)
-  (let ((bookmarks (and (boundp 'bookmark-alist)
-                        bookmark-alist))
-        name)
+  (let (name)
     (dolist (head (append
                    recentf-list
-                   (delq nil (mapcar (lambda (bookmark)
-                                       (cdr (assoc 'filename bookmark)))
-                                     bookmarks))))
+                   (and (fboundp 'bookmark-get-filename)
+                        (delq nil (mapcar #'bookmark-get-filename
+                                          (bound-and-true-p bookmark-alist))))))
       (setq name (file-name-nondirectory head))
       ;; In case HEAD is a directory with trailing /.  See bug#14552.
       (when (equal name "")