Function: treemacs--std-ignore-file-predicate--inliner

treemacs--std-ignore-file-predicate--inliner is a function defined in treemacs-core-utils.el.

Signature

(treemacs--std-ignore-file-predicate--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--std-ignore-file-predicate--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 'last
		       (list 'aref file
			     (list '1-
				   (list 'length file)))))
		(list 'or
		      (list 'string-prefix-p ".#" file)
		      (list 'and
			    (list 'eq 35 'last)
			    (list 'eq 35
				  (list 'aref file 0)))
		      (list 'backup-file-name-p file)
		      (list 'string-equal file ".")
		      (list 'string-equal file "..")
		      (list 'and 'treemacs-hide-dot-git-directory
			    (list 'string-equal file ".git"))
		      (list 'and 'treemacs-hide-dot-jj-directory
			    (list 'string-equal file ".jj"))
		      (list 'string-prefix-p "flycheck_" file)))))
      (if
	  (eq file exp)
	  body
	(macroexp-let*
	 (list
	  (list file exp))
	 body)))))