/[emacs]/emacs/lisp/iswitchb.el
ViewVC logotype

Diff of /emacs/lisp/iswitchb.el

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.37 by rms, Mon Dec 10 20:41:18 2001 UTC revision 1.38 by pj, Sat Apr 13 12:59:56 2002 UTC
# Line 182  Line 182 
182    
183  ;; Using iswitchb for other completion tasks.  ;; Using iswitchb for other completion tasks.
184    
185  ;; Kin Cho (kin@neoscale.com sent the following suggestion to use  ;; Kin Cho (kin@neoscale.com) sent the following suggestion to use
186  ;; iswitchb for other completion tasks.    ;; iswitchb for other completion tasks.  
187  ;;  ;;
188  ;; (defun my-icompleting-read (prompt choices)  ;; (defun my-icompleting-read (prompt choices)
# Line 198  Line 198 
198  ;; (my-icompleting-read "Which fruit? " '  ;; (my-icompleting-read "Which fruit? " '
199  ;;                   ("apple" "pineapple" "pear" "bananas" "oranges") )  ;;                   ("apple" "pineapple" "pear" "bananas" "oranges") )
200    
201    ;; Kin Cho also suggested the following defun.  Once you have a subset of
202    ;; matching buffers matching your current prompt, you can then press
203    ;; e.g. C-o to restrict matching to those buffers and clearing the prompt:
204    ;; (defun iswitchb-exclude-nonmatching()
205    ;;    "Make iswitchb work on only the currently matching names."
206    ;;    (interactive)
207    ;;    (setq iswitchb-buflist iswitchb-matches)
208    ;;    (setq iswitchb-rescan t)
209    ;;    (delete-minibuffer-contents))
210    ;;
211    ;; (add-hook 'iswitchb-define-mode-map-hook
212    ;;        '(lambda () (define-key
213    ;;                      iswitchb-mode-map "\C-o"
214    ;;                      'iswitchb-exclude-nonmatching)))
215    
216  ;; Other lisp packages extend iswitchb behaviour to other tasks.  See  ;; Other lisp packages extend iswitchb behaviour to other tasks.  See
217  ;; ido.el (by Kim Storm) and mcomplete.el (Yuji Minejima).  ;; ido.el (by Kim Storm) and mcomplete.el (Yuji Minejima).
218    

Legend:
Removed from v.1.37  
changed lines
  Added in v.1.38

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26