diff options
| author | Pavel Janík | 2002-04-13 13:01:48 +0000 |
|---|---|---|
| committer | Pavel Janík | 2002-04-13 13:01:48 +0000 |
| commit | a2c060f6b4df8acbee68ff669d5265853bfe43e3 (patch) | |
| tree | 4a154e11de93bc2dc72cd36387f6740918e26023 | |
| parent | 4603049d33a5358da2f7222fba856843f50986b7 (diff) | |
| download | emacs-a2c060f6b4df8acbee68ff669d5265853bfe43e3.tar.gz emacs-a2c060f6b4df8acbee68ff669d5265853bfe43e3.zip | |
Update commentary to include new function iswitchb-exclude-nonmatching.
| -rw-r--r-- | lisp/ChangeLog | 7 | ||||
| -rw-r--r-- | lisp/iswitchb.el | 17 |
2 files changed, 22 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 4694628b8c8..cc76c713f49 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2002-04-13 Pavel Jan,Bm(Bk <Pavel@Janik.cz> | ||
| 2 | |||
| 3 | * iswitchb.el: Update commentary to include new function | ||
| 4 | iswitchb-exclude-nonmatching. | ||
| 5 | |||
| 1 | 2002-04-12 John Wiegley <johnw@gnu.org> | 6 | 2002-04-12 John Wiegley <johnw@gnu.org> |
| 2 | 7 | ||
| 3 | * eshell/esh-ext.el (eshell-script-interpreter): Fix for CRLF | 8 | * eshell/esh-ext.el (eshell-script-interpreter): Fix for CRLF |
| @@ -15,7 +20,7 @@ | |||
| 15 | 20 | ||
| 16 | 2002-04-12 Francesco Potorti` <pot@gnu.org> | 21 | 2002-04-12 Francesco Potorti` <pot@gnu.org> |
| 17 | 22 | ||
| 18 | * comint.el (comint-password-prompt-regexp): Match" SMB password". | 23 | * comint.el (comint-password-prompt-regexp): Match " SMB password". |
| 19 | 24 | ||
| 20 | 2002-04-11 Stefan Monnier <monnier@cs.yale.edu> | 25 | 2002-04-11 Stefan Monnier <monnier@cs.yale.edu> |
| 21 | 26 | ||
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 @@ | |||
| 182 | 182 | ||
| 183 | ;; Using iswitchb for other completion tasks. | 183 | ;; Using iswitchb for other completion tasks. |
| 184 | 184 | ||
| 185 | ;; Kin Cho (kin@neoscale.com sent the following suggestion to use | 185 | ;; Kin Cho (kin@neoscale.com) sent the following suggestion to use |
| 186 | ;; iswitchb for other completion tasks. | 186 | ;; iswitchb for other completion tasks. |
| 187 | ;; | 187 | ;; |
| 188 | ;; (defun my-icompleting-read (prompt choices) | 188 | ;; (defun my-icompleting-read (prompt choices) |
| @@ -198,6 +198,21 @@ | |||
| 198 | ;; (my-icompleting-read "Which fruit? " ' | 198 | ;; (my-icompleting-read "Which fruit? " ' |
| 199 | ;; ("apple" "pineapple" "pear" "bananas" "oranges") ) | 199 | ;; ("apple" "pineapple" "pear" "bananas" "oranges") ) |
| 200 | 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 | |||
| 201 | ;; Other lisp packages extend iswitchb behaviour to other tasks. See | 216 | ;; Other lisp packages extend iswitchb behaviour to other tasks. See |
| 202 | ;; ido.el (by Kim Storm) and mcomplete.el (Yuji Minejima). | 217 | ;; ido.el (by Kim Storm) and mcomplete.el (Yuji Minejima). |
| 203 | 218 | ||