From: Juanma Barranquero Date: Tue, 27 Apr 2010 11:47:19 +0000 (+0200) Subject: When killing buffers with ido, don't offer virtual buffers for completion. X-Git-Tag: emacs-pretest-24.0.90~104^2~275^2~438^2~366 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=cecaa6745f10332a30f4ba42c0e41278072b92e3;p=emacs.git 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. --- 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))