Function: erc-get-buffer-create

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

Signature

(erc-get-buffer-create SERVER PORT TARGET &optional TGT-INFO ID)

Documentation

Create a new buffer based on the arguments.

Source Code

;; Defined in /usr/src/emacs/lisp/erc/erc.el.gz
(defun erc-get-buffer-create (server port target &optional tgt-info id)
  "Create a new buffer based on the arguments."
  (when target ; compat
    (setq tgt-info (erc--target-from-string target)))
  (if (and erc--server-reconnecting
           (not tgt-info)
           (with-suppressed-warnings ((obsolete erc-reuse-buffers))
             erc-reuse-buffers))
      (current-buffer)
    (get-buffer-create
     (erc-generate-new-buffer-name server port nil tgt-info id))))