# HG changeset patch # User Pavel Jank # Date 1018702796 0 # Node ID 4b1e92d76a101731ac6808a1edfa86d8531d89f5 # Parent 90489afa82c765913c7f5f95877c46ca71349f9f Update commentary to include new function iswitchb-exclude-nonmatching. diff -r 90489afa82c7 -r 4b1e92d76a10 lisp/iswitchb.el --- 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).