Function: treemacs--should-reenter?

treemacs--should-reenter? is a byte-compiled function defined in treemacs-rendering.el.

Signature

(treemacs--should-reenter? PATH)

Documentation

Check if PATH should not be reentered.

Returns nil if PATH is either not a file or it should be hidden on account of treemacs-show-hidden-files being non-nil.

PATH: Node Path

Source Code

;; Defined in ~/.emacs.d/elpa/treemacs-20251226.1307/treemacs-rendering.el
(define-inline treemacs--should-reenter? (path)
  "Check if PATH should not be reentered.
Returns nil if PATH is either not a file or it should be hidden on account of
`treemacs-show-hidden-files' being non-nil.

PATH: Node Path"
  (declare (side-effect-free t))
  (inline-letevals (path)
    (inline-quote
     (let ((path (cond
                  ((stringp ,path)
                   ,path)
                  ;; tags should be reopened also
                  ((and (consp ,path)
                        (stringp (car ,path)))
                   (car ,path)))))
       (if path
           (or treemacs-show-hidden-files
               (not (s-matches? treemacs-dotfiles-regex
                                (treemacs--filename path))))
         t)))))