Function: treemacs--insert-tag-leaf

treemacs--insert-tag-leaf is a byte-compiled function defined in treemacs-tags.el.

Signature

(treemacs--insert-tag-leaf ITEM PATH PREFIX PARENT DEPTH)

Documentation

Return the text to insert for a tag leaf ITEM with given PATH.

Use PREFIX for indentation. Set PARENT and DEPTH button properties. ITEM: String . Marker PREFIX: String PARENT: Button DEPTH: Int

Source Code

;; Defined in ~/.emacs.d/elpa/treemacs-20251226.1307/treemacs-tags.el
(define-inline treemacs--insert-tag-leaf (item path prefix parent depth)
  "Return the text to insert for a tag leaf ITEM with given PATH.
Use PREFIX for indentation.
Set PARENT and DEPTH button properties.
ITEM: String . Marker
PREFIX: String
PARENT: Button
DEPTH: Int"
  (inline-letevals (item prefix parent depth)
    (inline-quote
     (list
      ,prefix
      (propertize (car ,item)
                  'button '(t)
                  'category 'treemacs-button
                  'face 'treemacs-tags-face
                  'help-echo nil
                  :path ,path
                  :key (car ,item)
                  :state 'tag-node
                  :parent ,parent
                  :depth ,depth
                  :marker (cdr ,item))))))