Function: projectile-replace--regather
projectile-replace--regather is a byte-compiled function defined in
projectile.el.
Signature
(projectile-replace--regather)
Documentation
Re-run the search from scratch into the buffer-local match list.
Cancels any in-flight scan first, then re-scans (asynchronously when
projectile-replace--async-p holds, else synchronously) with
case-fold-search honoring projectile-replace--case-fold, clearing any
active filter because the list is rebuilt from every match in the
project. Because the match list is rebuilt, every match comes back
enabled: re-scanning (via g, the case toggle, or the regexp toggle)
resets any per-match include or exclude toggles you had set. Use the
filter commands instead to prune the list while preserving the survivors'
state. The re-render happens from the (streaming) scan, so callers need
not render again.
Source Code
;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
(defun projectile-replace--regather ()
"Re-run the search from scratch into the buffer-local match list.
Cancels any in-flight scan first, then re-scans (asynchronously when
`projectile-replace--async-p' holds, else synchronously) with
`case-fold-search' honoring `projectile-replace--case-fold', clearing any
active filter because the list is rebuilt from every match in the
project. Because the match list is rebuilt, every match comes back
enabled: re-scanning (via `g', the case toggle, or the regexp toggle)
resets any per-match include or exclude toggles you had set. Use the
filter commands instead to prune the list while preserving the survivors'
state. The re-render happens from the (streaming) scan, so callers need
not render again."
(let* ((term projectile-replace--term)
(literal projectile-replace--literal)
(case-fold projectile-replace--case-fold)
(projects projectile-replace--projects)
(candidates (lambda ()
(projectile-replace--candidates
term literal case-fold projects))))
(setq projectile-replace--filtered nil)
(projectile-replace--start (current-buffer) candidates
projectile-replace--search nil)))