Function: treemacs--reject-ignored-and-dotfiles--inliner

treemacs--reject-ignored-and-dotfiles--inliner is a function defined in treemacs-core-utils.el.

Signature

(treemacs--reject-ignored-and-dotfiles--inliner INLINE--FORM FILE)

Source Code

;; Defined in ~/.emacs.d/elpa/treemacs-20251226.1307/treemacs-core-utils.el
;; Closure converted to defun by helpful.
(defun treemacs--reject-ignored-and-dotfiles--inliner
    (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 'filename
		       (list 'treemacs--filename file)))
		(list 'and
		      (list 'not
			    (list 's-matches\? 'treemacs-dotfiles-regex 'filename))
		      (list '--none\?
			    (list 'funcall 'it 'filename file)
			    'treemacs-ignored-file-predicates)))))
      (if
	  (eq file exp)
	  body
	(macroexp-let*
	 (list
	  (list file exp))
	 body)))))