Function: cider-current-ns
cider-current-ns is a byte-compiled function defined in
cider-client.el.
Signature
(cider-current-ns &optional NO-DEFAULT NO-REPL-CHECK)
Documentation
Return the current ns.
The ns is extracted from the ns form for Clojure buffers and from
cider-buffer-ns for all other buffers. If it's missing, use the current
REPL's ns, otherwise fall back to "user".
When NO-DEFAULT is non-nil, it will return nil instead of "user".
When NO-REPL-CHECK is non-nil, cider-current-repl will not be queried,
improving performance (at the possible cost of accuracy).
Source Code
;; Defined in ~/.emacs.d/elpa/cider-20260414.1619/cider-client.el
(defun cider-current-ns (&optional no-default no-repl-check)
"Return the current ns.
The ns is extracted from the ns form for Clojure buffers and from
`cider-buffer-ns' for all other buffers. If it's missing, use the current
REPL's ns, otherwise fall back to \"user\".
When NO-DEFAULT is non-nil, it will return nil instead of \"user\".
When NO-REPL-CHECK is non-nil, `cider-current-repl' will not be queried,
improving performance (at the possible cost of accuracy)."
(or cider-buffer-ns
(cider-get-ns-name)
(unless no-repl-check
(when-let* ((repl (cider-current-repl)))
(buffer-local-value 'cider-buffer-ns repl)))
(if no-default nil "user")))