Function: erc-buffer-filter

erc-buffer-filter is a byte-compiled function defined in erc.el.gz.

Signature

(erc-buffer-filter PREDICATE &optional PROC)

Documentation

Return a list of erc-mode buffers matching certain criteria.

Call PREDICATE without arguments in all ERC buffers or only those belonging to a non-nil PROC. Expect it to return non-nil in buffers that should be included in the returned list.

PROC is either an erc-server-process, identifying a certain server connection, or nil which means all open connections.

Aliases

erc-buffer-do

Source Code

;; Defined in /usr/src/emacs/lisp/erc/erc.el.gz
(defun erc-buffer-filter (predicate &optional proc)
  "Return a list of `erc-mode' buffers matching certain criteria.
Call PREDICATE without arguments in all ERC buffers or only those
belonging to a non-nil PROC.  Expect it to return non-nil in
buffers that should be included in the returned list.

PROC is either an `erc-server-process', identifying a certain
server connection, or nil which means all open connections."
  (save-excursion
    (delq
     nil
     (mapcar (lambda (buf)
               (when (buffer-live-p buf)
		 (erc--buffer-p buf predicate proc)))
             (buffer-list)))))