Fixes: debbugs:19335

* lisp/ido.el (ido-add-virtual-buffers-to-list): Include bookmark-alist files
This commit is contained in:
Rasmus Pank Roulund 2015-03-12 15:02:55 -04:00 committed by Stefan Monnier
parent fc10058a4f
commit ac4cce624c
2 changed files with 13 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2015-03-12 Rasmus Pank Roulund <emacs@pank.eu>
* ido.el (ido-add-virtual-buffers-to-list): Include bookmark-alist
files (bug#19335).
2015-03-12 Eli Zaretskii <eliz@gnu.org>
* international/fontset.el (script-representative-chars): Add a

View file

@ -3480,8 +3480,14 @@ 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 (name)
(dolist (head recentf-list)
(let ((bookmarks (and (boundp 'bookmark-alist)
bookmark-alist))
name)
(dolist (head (append
recentf-list
(delq nil (mapcar (lambda (bookmark)
(cdr (assoc 'filename bookmark)))
bookmarks))))
(setq name (file-name-nondirectory head))
;; In case HEAD is a directory with trailing /. See bug#14552.
(when (equal name "")