Function: cider-ns-load-state
cider-ns-load-state is a byte-compiled function defined in
cider-ns-state.el.
Signature
(cider-ns-load-state)
Documentation
Return the load/sync state of the current buffer's namespace.
One of loaded, not-loaded, out-of-sync, or nil when the state is unknown
or not applicable (no connection, not a Clojure source buffer, or no
namespace).
Cheap enough for the mode line: it never sends a request to the REPL, and when
the state hasn't been determined yet cider-ns-state--loaded is nil so it bails
out before the connection check.
Source Code
;; Defined in ~/.emacs.d/elpa/cider-20260822.1520/cider-ns-state.el
(defun cider-ns-load-state ()
"Return the load/sync state of the current buffer's namespace.
One of `loaded', `not-loaded', `out-of-sync', or nil when the state is unknown
or not applicable (no connection, not a Clojure source buffer, or no
namespace).
Cheap enough for the mode line: it never sends a request to the REPL, and when
the state hasn't been determined yet `cider-ns-state--loaded' is nil so it bails
out before the connection check."
(when (and cider-ns-state--loaded
(derived-mode-p 'clojure-mode 'clojure-ts-mode)
(cider-connected-p))
(cond
((eq cider-ns-state--loaded 'not-loaded) 'not-loaded)
((and cider-ns-state--loaded-tick
(/= cider-ns-state--loaded-tick (buffer-chars-modified-tick)))
'out-of-sync)
(t 'loaded))))