Mercurial > emacs
changeset 44557:4b1e92d76a10
Update commentary to include new function iswitchb-exclude-nonmatching.
author | Pavel Janík <Pavel@Janik.cz> |
---|---|
date | Sat, 13 Apr 2002 12:59:56 +0000 |
parents | 90489afa82c7 |
children | a22b230e0b6c |
files | lisp/iswitchb.el |
diffstat | 1 files changed, 16 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/iswitchb.el Sat Apr 13 10:50:32 2002 +0000 +++ b/lisp/iswitchb.el Sat Apr 13 12:59:56 2002 +0000 @@ -182,7 +182,7 @@ ;; Using iswitchb for other completion tasks. -;; Kin Cho (kin@neoscale.com sent the following suggestion to use +;; Kin Cho (kin@neoscale.com) sent the following suggestion to use ;; iswitchb for other completion tasks. ;; ;; (defun my-icompleting-read (prompt choices) @@ -198,6 +198,21 @@ ;; (my-icompleting-read "Which fruit? " ' ;; ("apple" "pineapple" "pear" "bananas" "oranges") ) +;; Kin Cho also suggested the following defun. Once you have a subset of +;; matching buffers matching your current prompt, you can then press +;; e.g. C-o to restrict matching to those buffers and clearing the prompt: +;; (defun iswitchb-exclude-nonmatching() +;; "Make iswitchb work on only the currently matching names." +;; (interactive) +;; (setq iswitchb-buflist iswitchb-matches) +;; (setq iswitchb-rescan t) +;; (delete-minibuffer-contents)) +;; +;; (add-hook 'iswitchb-define-mode-map-hook +;; '(lambda () (define-key +;; iswitchb-mode-map "\C-o" +;; 'iswitchb-exclude-nonmatching))) + ;; Other lisp packages extend iswitchb behaviour to other tasks. See ;; ido.el (by Kim Storm) and mcomplete.el (Yuji Minejima).