Function: treemacs--parent
treemacs--parent is a byte-compiled function defined in
treemacs-core-utils.el.
Signature
(treemacs--parent PATH)
Documentation
Parent of PATH, or PATH itself if PATH is the root directory.
PATH: Node Path
Source Code
;; Defined in ~/.emacs.d/elpa/treemacs-20251226.1307/treemacs-core-utils.el
(define-inline treemacs--parent (path)
"Parent of PATH, or PATH itself if PATH is the root directory.
PATH: Node Path"
(declare (pure t) (side-effect-free t))
(inline-letevals (path)
(inline-quote
(treemacs-with-path ,path
:file-action (treemacs--parent-dir ,path)
:extension-action (-butlast ,path)
:no-match-action (user-error "Path %s appears to be neither a file nor an extension" ,path)))))