Function: projectile-replace--review
projectile-replace--review is a byte-compiled function defined in
projectile.el.
Signature
(projectile-replace--review LITERAL)
Documentation
Gather matches for a project-wide replacement and pop the results buffer.
LITERAL non-nil runs a literal replace; otherwise the search term is an Emacs regexp and the replacement may reference capture groups.
Source Code
;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
(defun projectile-replace--review (literal)
"Gather matches for a project-wide replacement and pop the results buffer.
LITERAL non-nil runs a literal replace; otherwise the search term is an
Emacs regexp and the replacement may reference capture groups."
(let* ((root (projectile-acquire-root))
(term (read-string
(projectile-prepend-project-name
(if literal "Replace: " "Replace regexp: "))
(projectile-symbol-or-selection-at-point)))
(replacement (read-string
(projectile-prepend-project-name
(format "Replace %s with: " term))))
(regexp (if literal (regexp-quote term) term))
(case-fold case-fold-search)
(word projectile-search-whole-word)
(candidates (projectile-replace--candidates term literal case-fold root)))
(projectile-replace--open
#'projectile-replace-mode projectile-replace-buffer-name
root term regexp replacement literal case-fold candidates
(projectile-prepend-project-name (format "No matches for %s" term))
word)))