• Stefan Monnier's avatar
    Add `predicate' arg to `read-buffer' and use it for erc-iswitchb · f925fc93
    Stefan Monnier authored
    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.
    f925fc93
NEWS 30.1 KB