Function: treemacs--insert-tag-node--inliner

treemacs--insert-tag-node--inliner is a function defined in treemacs-tags.el.

Signature

(treemacs--insert-tag-node--inliner INLINE--FORM NODE PATH PREFIX PARENT DEPTH)

Source Code

;; Defined in ~/.emacs.d/elpa/treemacs-20251226.1307/treemacs-tags.el
;; Closure converted to defun by helpful.
(defun treemacs--insert-tag-node--inliner
    (inline--form node path prefix parent depth)
  (ignore inline--form)
  (catch 'inline--just-use
    (let*
	((exp node)
	 (node
	  (if
	      (macroexp-copyable-p exp)
	      exp
	    (make-symbol "node")))
	 (body
	  (let*
	      ((exp prefix)
	       (prefix
		(if
		    (macroexp-copyable-p exp)
		    exp
		  (make-symbol "prefix")))
	       (body
		(let*
		    ((exp parent)
		     (parent
		      (if
			  (macroexp-copyable-p exp)
			  exp
			(make-symbol "parent")))
		     (body
		      (let*
			  ((exp depth)
			   (depth
			    (if
				(macroexp-copyable-p exp)
				exp
			      (make-symbol "depth")))
			   (body
			    (list 'list prefix
				  (list 'propertize
					(list 'car node)
					(list 'quote 'button)
					(list 'quote
					      (list t))
					(list 'quote 'category)
					(list 'quote 'treemacs-button)
					(list 'quote 'face)
					(list 'quote 'treemacs-tags-face)
					(list 'quote 'help-echo)
					nil :path path :key
					(list 'car node)
					:state
					(list 'quote 'tag-node-closed)
					:parent parent :depth depth :index
					(list 'cdr node)))))
			(if
			    (eq depth exp)
			    body
			  (macroexp-let*
			   (list
			    (list depth exp))
			   body)))))
		  (if
		      (eq parent exp)
		      body
		    (macroexp-let*
		     (list
		      (list parent exp))
		     body)))))
	    (if
		(eq prefix exp)
		body
	      (macroexp-let*
	       (list
		(list prefix exp))
	       body)))))
      (if
	  (eq node exp)
	  body
	(macroexp-let*
	 (list
	  (list node exp))
	 body)))))