Function: projectile--maybe-warn-glob-keep-entries
projectile--maybe-warn-glob-keep-entries is a byte-compiled function
defined in projectile.el.
Signature
(projectile--maybe-warn-glob-keep-entries PROJECT-ROOT CFG)
Documentation
Warn once per session about glob patterns in + keep entries.
PROJECT-ROOT identifies the warned-projects set; CFG is the parsed
projectile-dirconfig struct. The + prefix is for subdirectories
only; the parser silently coerces each entry to a directory, so a
glob pattern would never match.
Source Code
;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
(defun projectile--maybe-warn-glob-keep-entries (project-root cfg)
"Warn once per session about glob patterns in + keep entries.
PROJECT-ROOT identifies the warned-projects set; CFG is the parsed
`projectile-dirconfig' struct. The `+' prefix is for subdirectories
only; the parser silently coerces each entry to a directory, so a
glob pattern would never match."
(when (and cfg
(not (gethash project-root projectile--glob-keep-warned-projects)))
(when-let* ((globbed (seq-filter
(lambda (entry) (string-match-p "[][*?]" entry))
(projectile-dirconfig-keep cfg))))
(puthash project-root t projectile--glob-keep-warned-projects)
(display-warning
'projectile
(format "%s contains `+' entries with glob metacharacters: %s. \
The `+' prefix is for subdirectory paths only; globs are not expanded \
and the entries are silently coerced to directory names. Use a plain \
directory or move the pattern to a `-'/`!' rule."
(expand-file-name projectile-dirconfig-file project-root)
(mapconcat (lambda (s) (format "`%s'" s)) globbed ", "))
:warning))))