]> git.eshelyaron.com Git - emacs.git/commitdiff
Update commentary to include new function iswitchb-exclude-nonmatching.
authorPavel Janík <Pavel@Janik.cz>
Sat, 13 Apr 2002 13:01:48 +0000 (13:01 +0000)
committerPavel Janík <Pavel@Janik.cz>
Sat, 13 Apr 2002 13:01:48 +0000 (13:01 +0000)
lisp/ChangeLog
lisp/iswitchb.el

index 4694628b8c80a47d997e205f4cef0225df1bda6d..cc76c713f4996b86492d1c0270bc01452575aad6 100644 (file)
@@ -1,3 +1,8 @@
+2002-04-13  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
+
+       * iswitchb.el: Update commentary to include new function
+       iswitchb-exclude-nonmatching.
+
 2002-04-12  John Wiegley  <johnw@gnu.org>
 
        * eshell/esh-ext.el (eshell-script-interpreter): Fix for CRLF
@@ -15,7 +20,7 @@
 
 2002-04-12  Francesco Potorti`  <pot@gnu.org>
 
-       * comint.el (comint-password-prompt-regexp): Match" SMB password".
+       * comint.el (comint-password-prompt-regexp): Match " SMB password".
 
 2002-04-11  Stefan Monnier  <monnier@cs.yale.edu>
 
index aece0d2dea0d3c516b50ddbf09b0903f95862e19..0b283d0ae779ca66dd8881dafe383efc5c20e80e 100644 (file)
 
 ;; 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)
 ;; (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).