Function: nrepl-make-buffer-name
nrepl-make-buffer-name is a byte-compiled function defined in
nrepl-client.el.
Signature
(nrepl-make-buffer-name TEMPLATE PARAMS &optional DUP-OK)
Documentation
Generate a buffer name using TEMPLATE and PARAMS.
TEMPLATE is a format string and PARAMS a plist of connection parameters.
Formatting is done by nrepl-format-buffer-name-function if set.
If optional DUP-OK is non-nil, the returned buffer is not "uniquified" by a
call to generate-new-buffer-name.
Source Code
;; Defined in ~/.emacs.d/elpa/cider-20260822.1520/nrepl-client.el
(defun nrepl-make-buffer-name (template params &optional dup-ok)
"Generate a buffer name using TEMPLATE and PARAMS.
TEMPLATE is a format string and PARAMS a plist of connection parameters.
Formatting is done by `nrepl-format-buffer-name-function' if set.
If optional DUP-OK is non-nil, the returned buffer is not \"uniquified\" by a
call to `generate-new-buffer-name'."
(let ((name (if nrepl-format-buffer-name-function
(funcall nrepl-format-buffer-name-function template params)
template)))
(if dup-ok
name
(generate-new-buffer-name name))))