diff options
| author | Stefan Monnier | 2015-03-16 14:49:01 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2015-03-16 14:49:01 -0400 |
| commit | f925fc93bac41d7622d1af927e33b0e738ff55b0 (patch) | |
| tree | e8635662256290a1662a299b66e32f6301535200 /lisp/replace.el | |
| parent | 43a847c02c3eb848cd0d55a4722bfe7f39b1112f (diff) | |
| download | emacs-f925fc93bac41d7622d1af927e33b0e738ff55b0.tar.gz emacs-f925fc93bac41d7622d1af927e33b0e738ff55b0.zip | |
Add `predicate' arg to `read-buffer' and use it for erc-iswitchb
Fixes: debbugs:20116
* src/minibuf.c (Fread_buffer): Add `predicate' argument.
* src/callint.c (Fcall_interactively): Adjust calls accordingly.
* lisp/erc/erc.el (erc-switch-to-buffer): Rename from erc-iswitchb and rewrite
using read-buffer.
(erc--buffer-p): New function, extracted from erc-buffer-filter.
(erc-buffer-filter): Use it.
(erc-with-all-buffers-of-server): Silence compile warning if the return
value is unused.
(erc-is-valid-nick-p, erc-common-server-suffixes, erc-get-arglist)
(erc-command-name, erc-popup-input-buffer): Use \` and \' to match
beg/end of string.
* lisp/obsolete/iswitchb.el (iswitchb-read-buffer): Add `predicate' arg.
* lisp/isearchb.el (isearchb-iswitchb): Adjust accordingly.
* lisp/ido.el (ido-read-buffer): Add `predicate' argument.
* lisp/misearch.el (unload-function-defs-list): Declare before use.
Diffstat (limited to 'lisp/replace.el')
| -rw-r--r-- | lisp/replace.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/replace.el b/lisp/replace.el index e0636e0728c..70b86dd2016 100644 --- a/lisp/replace.el +++ b/lisp/replace.el | |||
| @@ -1369,7 +1369,7 @@ See also `multi-occur-in-matching-buffers'." | |||
| 1369 | (ido-ignore-item-temp-list bufs)) | 1369 | (ido-ignore-item-temp-list bufs)) |
| 1370 | (while (not (string-equal | 1370 | (while (not (string-equal |
| 1371 | (setq buf (read-buffer | 1371 | (setq buf (read-buffer |
| 1372 | (if (eq read-buffer-function 'ido-read-buffer) | 1372 | (if (eq read-buffer-function #'ido-read-buffer) |
| 1373 | "Next buffer to search (C-j to end): " | 1373 | "Next buffer to search (C-j to end): " |
| 1374 | "Next buffer to search (RET to end): ") | 1374 | "Next buffer to search (RET to end): ") |
| 1375 | nil t)) | 1375 | nil t)) |