Function: treemacs-clear-annotation-faces

treemacs-clear-annotation-faces is a byte-compiled function defined in treemacs-annotations.el.

Signature

(treemacs-clear-annotation-faces SOURCE)

Documentation

Remove all face annotations of the given SOURCE.

Source Code

;; Defined in ~/.emacs.d/elpa/treemacs-20251226.1307/treemacs-annotations.el
(defun treemacs-clear-annotation-faces (source)
  "Remove all face annotations of the given SOURCE."
  (treemacs--maphash treemacs--annotation-store (path ann)
    (-when-let (face-list (treemacs-annotation->face ann))
      (setf
       (treemacs-annotation->face ann)
       (--reject-first (string= source (car it)) face-list)
       (treemacs-annotation->face-value ann)
       (append
        (mapcar #'cdr (treemacs-annotation->face ann))
        (treemacs-annotation->git-face ann)))
      (treemacs--remove-annotation-if-empty ann path))))