Function: treemacs-icon-for-file--inliner

treemacs-icon-for-file--inliner is a function defined in treemacs-icons.el.

Signature

(treemacs-icon-for-file--inliner INLINE--FORM FILE)

Source Code

;; Defined in ~/.emacs.d/elpa/treemacs-20251226.1307/treemacs-icons.el
;; Could not find source code, showing raw function object.
#[(inline--form file)
  ((ignore inline--form)
   (catch 'inline--just-use
     (let*
	 ((exp file)
	  (file
	   (if (macroexp-copyable-p exp) exp (make-symbol "file")))
	  (body
	   (list 'let
		 (list
		  (list 'file-downcased
			(list '-> file (list 'treemacs--filename)
			      (list 'downcase))))
		 (list 'or
		       (list 'ht-get 'treemacs-icons 'file-downcased)
		       (list 'ht-get 'treemacs-icons
			     (list 'treemacs--file-extension
				   'file-downcased)
			     (list 'with-no-warnings
				   'treemacs-icon-fallback))))))
       (if (eq file exp) body
	 (macroexp-let* (list (list file exp)) body)))))
  (t)]