Function: treemacs-goto-file-node--inliner

treemacs-goto-file-node--inliner is a function defined in treemacs-core-utils.el.

Signature

(treemacs-goto-file-node--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-goto-file-node--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 '-when-let
		      (list 'result
			    (list 'treemacs-find-file-node path project))
		      (list 'treemacs--evade-image)
		      (list 'hl-line-highlight)
		      (list '-when-let
			    (list 'window
				  (list 'get-buffer-window))
			    (list 'set-window-point 'window
				  (list 'point)))
		      'result)))
	    (if
		(eq project exp)
		body
	      (macroexp-let*
	       (list
		(list project exp))
	       body)))))
      (if
	  (eq path exp)
	  body
	(macroexp-let*
	 (list
	  (list path exp))
	 body)))))