Mercurial > emacs
changeset 108141:30a211bbe1bf
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.
author | Juanma Barranquero <lekktu@gmail.com> |
---|---|
date | Tue, 27 Apr 2010 13:47:19 +0200 |
parents | c9a940f35ec6 |
children | 087c3dc49930 aeb8069f9ba3 |
files | lisp/ChangeLog lisp/ido.el |
diffstat | 2 files changed, 9 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/ChangeLog Tue Apr 27 12:49:02 2010 +0200 +++ b/lisp/ChangeLog Tue Apr 27 13:47:19 2010 +0200 @@ -1,4 +1,9 @@ -2010-04-27 Agustín Martín <agustin.martin@hispalinux.es> +2010-04-27 Juanma Barranquero <lekktu@gmail.com> + + * ido.el (ido-buffer-internal): Bind `ido-use-virtual-buffers' to nil + when method is 'kill. + +2010-04-27 Agustín Martín <agustin.martin@hispalinux.es> * ispell.el (ispell-init-process): Fix personal dictionary condition in default directory check.
--- a/lisp/ido.el Tue Apr 27 12:49:02 2010 +0200 +++ b/lisp/ido.el Tue Apr 27 13:47:19 2010 +0200 @@ -2183,7 +2183,9 @@ (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))