Function: treemacs--button-in-line--inliner

treemacs--button-in-line--inliner is a function defined in treemacs-rendering.el.

Signature

(treemacs--button-in-line--inliner INLINE--FORM POS)

Source Code

;; Defined in ~/.emacs.d/elpa/treemacs-20251226.1307/treemacs-rendering.el
;; Closure converted to defun by helpful.
(defun treemacs--button-in-line--inliner
    (inline--form pos)
  (ignore inline--form)
  (catch 'inline--just-use
    (let*
	((exp pos)
	 (pos
	  (if
	      (macroexp-copyable-p exp)
	      exp
	    (make-symbol "pos")))
	 (body
	  (list 'save-excursion
		(list 'goto-char pos)
		(list 'copy-marker
		      (list 'next-single-property-change
			    (list 'line-beginning-position)
			    (list 'quote 'button)
			    nil
			    (list 'line-end-position))
		      t))))
      (if
	  (eq pos exp)
	  body
	(macroexp-let*
	 (list
	  (list pos exp))
	 body)))))