Function: cider-ns-state--lighter

cider-ns-state--lighter is a byte-compiled function defined in cider-ns-state.el.

Signature

(cider-ns-state--lighter)

Documentation

Return the mode-line marker for the current buffer's namespace state.

Empty unless the namespace is not loaded or is out of sync. Any error is swallowed and rendered as an empty marker, since this runs during redisplay.

Source Code

;; Defined in ~/.emacs.d/elpa/cider-20260822.1520/cider-ns-state.el
(defun cider-ns-state--lighter ()
  "Return the mode-line marker for the current buffer's namespace state.
Empty unless the namespace is not loaded or is out of sync.  Any error is
swallowed and rendered as an empty marker, since this runs during redisplay."
  (if (not (memq 'mode-line cider-ns-load-state-display))
      ""
    (pcase (ignore-errors (cider-ns-load-state))
      ('not-loaded
       (propertize " not-loaded" 'face 'cider-ns-load-state-face
                   'help-echo "This namespace has not been loaded into the REPL.
Load the buffer with `cider-load-buffer' (C-c C-k)."))
      ('out-of-sync
       (propertize " stale" 'face 'cider-ns-load-state-face
                   'help-echo "This buffer has been edited since it was last loaded.
Reload it with `cider-load-buffer' (C-c C-k)."))
      (_ ""))))