aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRasmus Pank Roulund2015-03-12 15:02:55 -0400
committerStefan Monnier2015-03-12 15:02:55 -0400
commitac4cce624c4f51cbc57a210ade0ca74a1893d636 (patch)
tree1377df9fbdfda7a52078313d033cb1b08cce7487
parentfc10058a4f8a68891bd7a3508d62f03bfa5bf7ce (diff)
downloademacs-ac4cce624c4f51cbc57a210ade0ca74a1893d636.tar.gz
emacs-ac4cce624c4f51cbc57a210ade0ca74a1893d636.zip
Fixes: debbugs:19335
* lisp/ido.el (ido-add-virtual-buffers-to-list): Include bookmark-alist files
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/ido.el10
2 files changed, 13 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 534ba9d5f23..97253c8824e 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12015-03-12 Rasmus Pank Roulund <emacs@pank.eu>
2
3 * ido.el (ido-add-virtual-buffers-to-list): Include bookmark-alist
4 files (bug#19335).
5
12015-03-12 Eli Zaretskii <eliz@gnu.org> 62015-03-12 Eli Zaretskii <eliz@gnu.org>
2 7
3 * international/fontset.el (script-representative-chars): Add a 8 * international/fontset.el (script-representative-chars): Add a
diff --git a/lisp/ido.el b/lisp/ido.el
index 1f4e3facd36..563f406aeb6 100644
--- a/lisp/ido.el
+++ b/lisp/ido.el
@@ -3480,8 +3480,14 @@ This is to make them appear as if they were \"virtual buffers\"."
3480 ;; the file which the user might thought was still open. 3480 ;; the file which the user might thought was still open.
3481 (unless recentf-mode (recentf-mode 1)) 3481 (unless recentf-mode (recentf-mode 1))
3482 (setq ido-virtual-buffers nil) 3482 (setq ido-virtual-buffers nil)
3483 (let (name) 3483 (let ((bookmarks (and (boundp 'bookmark-alist)
3484 (dolist (head recentf-list) 3484 bookmark-alist))
3485 name)
3486 (dolist (head (append
3487 recentf-list
3488 (delq nil (mapcar (lambda (bookmark)
3489 (cdr (assoc 'filename bookmark)))
3490 bookmarks))))
3485 (setq name (file-name-nondirectory head)) 3491 (setq name (file-name-nondirectory head))
3486 ;; In case HEAD is a directory with trailing /. See bug#14552. 3492 ;; In case HEAD is a directory with trailing /. See bug#14552.
3487 (when (equal name "") 3493 (when (equal name "")