mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-03 18:41:25 -08:00
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.
This commit is contained in:
parent
43a847c02c
commit
f925fc93ba
13 changed files with 105 additions and 72 deletions
|
|
@ -463,7 +463,7 @@ color displays. By default, the delimiters are used only on TTYs."
|
|||
:type 'boolean
|
||||
:group 'viper)
|
||||
|
||||
(defcustom viper-read-buffer-function 'read-buffer
|
||||
(defcustom viper-read-buffer-function #'read-buffer
|
||||
"Function to use for prompting the user for a buffer name."
|
||||
:type 'symbol
|
||||
:group 'viper)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue