From cecaa6745f10332a30f4ba42c0e41278072b92e3 Mon Sep 17 00:00:00 2001 From: Juanma Barranquero Date: Tue, 27 Apr 2010 13:47:19 +0200 Subject: [PATCH] When killing buffers with ido, don't offer virtual buffers for completion. * ido.el (ido-buffer-internal): Bind `ido-use-virtual-buffers' to nil when method is 'kill. --- lisp/ChangeLog | 7 ++++++- lisp/ido.el | 4 +++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 6aa1a55fb53..2cdf49aa00e 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,4 +1,9 @@ -2010-04-27 Agustín Martín +2010-04-27 Juanma Barranquero + + * ido.el (ido-buffer-internal): Bind `ido-use-virtual-buffers' to nil + when method is 'kill. + +2010-04-27 Agustín Martín * ispell.el (ispell-init-process): Fix personal dictionary condition in default directory check. diff --git a/lisp/ido.el b/lisp/ido.el index 14a5c14ff09..101ef0438ea 100644 --- a/lisp/ido.el +++ b/lisp/ido.el @@ -2183,7 +2183,9 @@ If cursor is not at the end of the user input, move to end of input." (ido-current-directory nil) (ido-directory-nonreadable nil) (ido-directory-too-big nil) - (ido-use-virtual-buffers ido-use-virtual-buffers) + (ido-use-virtual-buffers (if (eq method 'kill) + nil ;; Don't consider virtual buffers for killing + ido-use-virtual-buffers)) (require-match (confirm-nonexistent-file-or-buffer)) (buf (ido-read-internal 'buffer (or prompt "Buffer: ") 'ido-buffer-history default require-match initial)) -- 2.39.2