Function: projectile-bookmark--belongs-p
projectile-bookmark--belongs-p is a byte-compiled function defined in
projectile.el.
Signature
(projectile-bookmark--belongs-p BOOKMARK ROOT)
Documentation
Return non-nil when BOOKMARK belongs to the project at ROOT.
BOOKMARK is a bookmark record and ROOT the project root's true name,
ending in a slash. Which test is applied is governed by
projectile-bookmark-scope.
Source Code
;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
(defun projectile-bookmark--belongs-p (bookmark root)
"Return non-nil when BOOKMARK belongs to the project at ROOT.
BOOKMARK is a bookmark record and ROOT the project root's true name,
ending in a slash. Which test is applied is governed by
`projectile-bookmark-scope'."
(or (and (memq projectile-bookmark-scope '(file both))
(projectile-bookmark--under-root-p
(bookmark-get-filename bookmark) root)
t)
(and (memq projectile-bookmark-scope '(name both))
(string-prefix-p (projectile-bookmark--name-prefix root)
(bookmark-name-from-full-record bookmark)))))