mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-24 07:20:37 +00:00
* ido.el (ido-add-virtual-buffers-to-list): Use bookmark-get-filename.
This commit is contained in:
parent
3e7f6338d8
commit
b2b84b166a
10
lisp/ido.el
10
lisp/ido.el
@ -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 "")
|
||||
|
Loading…
Reference in New Issue
Block a user