Function: projectile-replace--gather
projectile-replace--gather is a byte-compiled function defined in
projectile.el.
Signature
(projectile-replace--gather CANDIDATES REGEXP)
Documentation
Scan CANDIDATES for REGEXP, capped at projectile-search-max-matches.
Return a plist with :matches (the collected structs, in file order) and :truncated (non-nil when the cap was hit).
Source Code
;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
(defun projectile-replace--gather (candidates regexp)
"Scan CANDIDATES for REGEXP, capped at `projectile-search-max-matches'.
Return a plist with `:matches' (the collected structs, in file order)
and `:truncated' (non-nil when the cap was hit)."
(let ((all nil)
(budget projectile-search-max-matches)
(truncated nil))
(dolist (file candidates)
(if (> budget 0)
(let ((ms (projectile-replace--scan-file file regexp budget)))
(setq all (append all ms)
budget (- budget (length ms))))
;; a candidate was left unscanned because the cap was already hit
(setq truncated t)))
(list :matches all :truncated truncated)))