Function: rcirc-get-buffer

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

Signature

(rcirc-get-buffer PROCESS TARGET &optional SERVER)

Documentation

Return the buffer associated with the PROCESS and TARGET.

If optional argument SERVER is non-nil, return the server buffer if there is no existing buffer for TARGET, otherwise return nil.

Source Code

;; Defined in /usr/src/emacs/lisp/net/rcirc.el.gz
(defun rcirc-get-buffer (process target &optional server)
  "Return the buffer associated with the PROCESS and TARGET.

If optional argument SERVER is non-nil, return the server buffer
if there is no existing buffer for TARGET, otherwise return nil."
  (with-rcirc-process-buffer process
    (if (null target)
	(current-buffer)
      (let ((buffer (cdr (assoc-string target rcirc-buffer-alist t))))
	(or buffer (when server (current-buffer)))))))