Function: eca-doom--tabline-advice

eca-doom--tabline-advice is a natively compiled function defined in eca-doom.el.

Signature

(eca-doom--tabline-advice ORIG-FN &optional NAMES)

Documentation

Around advice for +workspace--tabline adding ECA status decoration.

Call ORIG-FN with NAMES and decorate its result. Any error falls back to the undecorated tabline so the Doom UI never breaks.

Source Code

;; Defined in /nix/store/jklqzw6pzz6j4jrbv8wy0iwgi7jlrbld-emacs-packages-deps/share/emacs/site-lisp/elpa/eca-20260928.1827/eca-doom.el
(defun eca-doom--tabline-advice (orig-fn &optional names)
  "Around advice for `+workspace--tabline' adding ECA status decoration.
Call ORIG-FN with NAMES and decorate its result.  Any error falls
back to the undecorated tabline so the Doom UI never breaks."
  (let* ((tabline (funcall orig-fn names))
         (result (or (ignore-errors
                       (eca-doom--tabline-decorate tabline
                                                   (or names (+workspace-list-names))))
                     tabline)))
    (when (stringp result)
      (setq eca-doom--last-tabline result))
    result))