Function: treemacs--insert-tag-node
treemacs--insert-tag-node is a byte-compiled function defined in
treemacs-tags.el.
Signature
(treemacs--insert-tag-node NODE PATH PREFIX PARENT DEPTH)
Documentation
Return the text to insert for a tag NODE with given tag PATH.
Use PREFIX for indentation. Set PARENT and DEPTH button properties.
NODE: String & List of (String . Marker) PATH: Tag Path PREFIX: String PARENT: Button DEPTH: Int
Source Code
;; Defined in ~/.emacs.d/elpa/treemacs-20251226.1307/treemacs-tags.el
(define-inline treemacs--insert-tag-node (node path prefix parent depth)
"Return the text to insert for a tag NODE with given tag PATH.
Use PREFIX for indentation.
Set PARENT and DEPTH button properties.
NODE: String & List of (String . Marker)
PATH: Tag Path
PREFIX: String
PARENT: Button
DEPTH: Int"
(inline-letevals (node prefix parent depth)
(inline-quote
(list
,prefix
(propertize (car ,node)
'button '(t)
'category 'treemacs-button
'face 'treemacs-tags-face
'help-echo nil
:path ,path
:key (car ,node)
:state 'tag-node-closed
:parent ,parent
:depth ,depth
:index (cdr ,node))))))