diff options
author | Pavel Janík <Pavel@Janik.cz> | 2002-04-13 13:01:48 +0000 |
---|---|---|
committer | Pavel Janík <Pavel@Janik.cz> | 2002-04-13 13:01:48 +0000 |
commit | a2c060f6b4df8acbee68ff669d5265853bfe43e3 (patch) | |
tree | 4a154e11de93bc2dc72cd36387f6740918e26023 /lisp/iswitchb.el | |
parent | 4603049d33a5358da2f7222fba856843f50986b7 (diff) | |
download | emacs-a2c060f6b4df8acbee68ff669d5265853bfe43e3.tar.gz |
Update commentary to include new function iswitchb-exclude-nonmatching.
Diffstat (limited to 'lisp/iswitchb.el')
-rw-r--r-- | lisp/iswitchb.el | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/lisp/iswitchb.el b/lisp/iswitchb.el index aece0d2dea0..0b283d0ae77 100644 --- a/lisp/iswitchb.el +++ b/lisp/iswitchb.el @@ -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). |