Function: treemacs-canonical-path--inliner

treemacs-canonical-path--inliner is a function defined in treemacs-core-utils.el.

Signature

(treemacs-canonical-path--inliner INLINE--FORM PATH)

Source Code

;; Defined in ~/.emacs.d/elpa/treemacs-20251226.1307/treemacs-core-utils.el
;; Closure converted to defun by helpful.
(defun treemacs-canonical-path--inliner
    (inline--form path)
  (ignore inline--form)
  (catch 'inline--just-use
    (let*
	((exp path)
	 (path
	  (if
	      (macroexp-copyable-p exp)
	      exp
	    (make-symbol "path")))
	 (body
	  (list 'if
		(list 'file-remote-p path)
		(list 'treemacs--unslash path)
		(list 'let
		      (list 'file-name-handler-alist)
		      (list '-> path
			    (list 'expand-file-name)
			    (list 'treemacs--unslash))))))
      (if
	  (eq path exp)
	  body
	(macroexp-let*
	 (list
	  (list path exp))
	 body)))))