Function: treemacs--refresh-dir--inliner

treemacs--refresh-dir--inliner is a function defined in treemacs-core-utils.el.

Signature

(treemacs--refresh-dir--inliner INLINE--FORM PATH &optional PROJECT)

Source Code

;; Defined in ~/.emacs.d/elpa/treemacs-20251226.1307/treemacs-core-utils.el
;; Closure converted to defun by helpful.
(defun treemacs--refresh-dir--inliner
    (inline--form path &optional project)
  (ignore inline--form)
  (catch 'inline--just-use
    (let*
	((exp path)
	 (path
	  (if
	      (macroexp-copyable-p exp)
	      exp
	    (make-symbol "path")))
	 (body
	  (let*
	      ((exp project)
	       (project
		(if
		    (macroexp-copyable-p exp)
		    exp
		  (make-symbol "project")))
	       (body
		(list 'let
		      (list
		       (list 'btn
			     (list 'treemacs-goto-file-node path project)))
		      (list 'when
			    (list 'memq
				  (list 'treemacs-button-get 'btn :state)
				  (list 'quote
					(list 'dir-node-open 'file-node-open 'root-node-open)))
			    (list 'goto-char
				  (list 'treemacs-button-start 'btn))
			    (list 'treemacs--push-button 'btn)
			    (list 'goto-char
				  (list 'treemacs-button-start 'btn))
			    (list 'treemacs--push-button 'btn)))))
	    (if
		(eq project exp)
		body
	      (macroexp-let*
	       (list
		(list project exp))
	       body)))))
      (if
	  (eq path exp)
	  body
	(macroexp-let*
	 (list
	  (list path exp))
	 body)))))