Function: cider-ns-state--refresh
cider-ns-state--refresh is a byte-compiled function defined in
cider-ns-state.el.
Signature
(cider-ns-state--refresh &optional BUFFER)
Documentation
Refresh the cached namespace load-state for BUFFER from track-state.
BUFFER defaults to the current buffer. Reads the track-state namespace cache
via cider-ns-load-cache, which the middleware keeps up to date, so it issues
no request of its own. An empty cache means "not yet reported" (left
unknown), not "nothing loaded". Does nothing without a connection or a
namespace.
Source Code
;; Defined in ~/.emacs.d/elpa/cider-20260822.1520/cider-ns-state.el
(defun cider-ns-state--refresh (&optional buffer)
"Refresh the cached namespace load-state for BUFFER from track-state.
BUFFER defaults to the current buffer. Reads the track-state namespace cache
via `cider-ns-load-cache', which the middleware keeps up to date, so it issues
no request of its own. An empty cache means \"not yet reported\" (left
unknown), not \"nothing loaded\". Does nothing without a connection or a
namespace."
(with-current-buffer (or buffer (current-buffer))
(when-let* ((repl (and (cider-connected-p) (cider-current-repl)))
(ns (cider-current-ns 'no-default))
(cache (cider-ns-load-cache repl)))
(unless (nrepl-dict-empty-p cache)
(setq-local cider-ns-state--loaded
(if (nrepl-dict-get cache ns) t 'not-loaded))
(cider-ns-state--update-fringe)))))