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-displayWhere to surface the current buffer’s namespace load-state.
cider-ns-state--fringe-markerThe before-string that adds a namespace load-state marker on the fringe.
cider-ns-state--fringe-overlayOverlay holding the namespace-level fringe marker, when shown.
cider-ns-state--loadedCached load state of the current buffer’s namespace.
cider-ns-state--loaded-tickValue of ‘buffer-chars-modified-tick’ when the buffer was last loaded.

Defined functions (10)

cider-ns-load-state()
cider-ns-refresh-load-state()
cider-ns-state--lighter()
cider-ns-state--mark-loaded()
cider-ns-state--ns-form-bounds()
cider-ns-state--refresh(&optional BUFFER)
cider-ns-state--refresh-on-focus(&optional FRAME)
cider-ns-state--update-fringe()
cider-ns-state-setup()
cider-ns-state-teardown()

Defined faces (1)

cider-ns-load-state-faceFace for the namespace load-state marker (mode line and fringe).