Function: projectile--replace-in-files
projectile--replace-in-files is a byte-compiled function defined in
projectile.el.
Signature
(projectile--replace-in-files FROM TO FILES)
Documentation
Query-replace matches of the regexp FROM with TO in FILES.
Buffers that are already visiting one of FILES are scanned from the beginning of the buffer; older Emacsen (< 28.1) would otherwise resume the scan from point in such buffers and silently skip any matches before it (#1677).
Source Code
;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
(defun projectile--replace-in-files (from to files)
"Query-replace matches of the regexp FROM with TO in FILES.
Buffers that are already visiting one of FILES are scanned from the
beginning of the buffer; older Emacsen (< 28.1) would otherwise resume
the scan from point in such buffers and silently skip any matches
before it (#1677)."
(dolist (file files)
(when-let* ((buffer (get-file-buffer file)))
(with-current-buffer buffer
(goto-char (point-min)))))
(fileloop-initialize-replace from to files 'default)
(fileloop-continue))