File: cider-ns-state.el.html
Track whether a source buffer's namespace has been loaded into the running
REPL, and whether the buffer has been edited since it was last loaded. The
state is surfaced via the cider-mode(var)/cider-mode(fun) mode-line lighter and/or a fringe
marker (see cider-ns-load-state-display), so it's obvious when you're about
to operate on a namespace that the runtime doesn't know about (or that is out
of sync). Loadedness is read from the track-state namespace cache, so it
costs no extra requests.
This is the coarse, namespace-level view. The complementary per-form view lives with the evaluation fringe indicators in cider-overlays.el (a form goes stale when you edit it after evaluating it).
Defined variables (5)
cider-ns-load-state-display | Where to surface the current buffer’s namespace load-state. |
cider-ns-state--fringe-marker | The before-string that adds a namespace load-state marker on the fringe. |
cider-ns-state--fringe-overlay | Overlay holding the namespace-level fringe marker, when shown. |
cider-ns-state--loaded | Cached load state of the current buffer’s namespace. |
cider-ns-state--loaded-tick | Value of ‘buffer-chars-modified-tick’ when the buffer was last loaded. |
Defined functions (10)
Defined faces (1)
cider-ns-load-state-face | Face for the namespace load-state marker (mode line and fringe). |