>From ed1321a6ea51ece2a90bb63842081a5ccee495a9 Mon Sep 17 00:00:00 2001 From: Leo Date: Thu, 15 Apr 2010 08:27:59 +0100 Subject: [PATCH 3/3] Turn on virtual buffers automatically when no matches --- lisp/ido.el | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/lisp/ido.el b/lisp/ido.el index 92d2a09..671e8a8 100644 --- a/lisp/ido.el +++ b/lisp/ido.el @@ -4491,7 +4491,14 @@ For details of keybindings, see `ido-find-file'." (setq ido-exit 'refresh) (exit-minibuffer))) + (when (and (eq ido-cur-item 'buffer) + (not ido-matches) + (not ido-use-virtual-buffers)) + (setq ido-text-init ido-text) + (setq ido-use-virtual-buffers t) + (setq ido-exit 'refresh) + (exit-minibuffer)) + (when (and ido-rescan (not ido-matches) -- 1.7.0.4