]> code.delx.au - gnu-emacs/commit
Add `predicate' arg to `read-buffer' and use it for erc-iswitchb
authorStefan Monnier <monnier@iro.umontreal.ca>
Mon, 16 Mar 2015 18:49:01 +0000 (14:49 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Mon, 16 Mar 2015 18:49:01 +0000 (14:49 -0400)
commitf925fc93bac41d7622d1af927e33b0e738ff55b0
treee8635662256290a1662a299b66e32f6301535200
parent43a847c02c3eb848cd0d55a4722bfe7f39b1112f
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.
13 files changed:
etc/NEWS
lisp/ChangeLog
lisp/emulation/viper-init.el
lisp/erc/ChangeLog
lisp/erc/erc.el
lisp/ido.el
lisp/isearchb.el
lisp/misearch.el
lisp/obsolete/iswitchb.el
lisp/replace.el
src/ChangeLog
src/callint.c
src/minibuf.c