Function: erc-get-buffer

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

Signature

(erc-get-buffer TARGET &optional PROC)

Documentation

Return the buffer matching TARGET in the process PROC.

If PROC is not supplied, all processes are searched.

Source Code

;; Defined in /usr/src/emacs/lisp/erc/erc.el.gz
(defun erc-get-buffer (target &optional proc)
  "Return the buffer matching TARGET in the process PROC.
If PROC is not supplied, all processes are searched."
  (let ((downcased-target (erc-downcase target)))
    (catch 'buffer
      (erc-buffer-filter
       (lambda ()
         (let ((current (erc-default-target)))
           (and (stringp current)
                (string-equal downcased-target (erc-downcase current))
                (throw 'buffer (current-buffer)))))
       proc))))