Function: treemacs-clear-annotation-suffixes

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

Signature

(treemacs-clear-annotation-suffixes SOURCE)

Documentation

Remove all suffix annotations of the given SOURCE.

Source Code

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