Function: projectile-search--rg-finish
projectile-search--rg-finish is a byte-compiled function defined in
projectile.el.
Signature
(projectile-search--rg-finish BUFFER ON-DONE)
Documentation
Settle BUFFER after its ripgrep scan ends and call ON-DONE.
Kills the scan process if still live (dropping its sentinel first), clears the scanning state, does a final render and calls ON-DONE. Safe against a killed BUFFER.
Source Code
;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
(defun projectile-search--rg-finish (buffer on-done)
"Settle BUFFER after its ripgrep scan ends and call ON-DONE.
Kills the scan process if still live (dropping its sentinel first),
clears the scanning state, does a final render and calls ON-DONE. Safe
against a killed BUFFER."
(when (buffer-live-p buffer)
(with-current-buffer buffer
(when (process-live-p projectile-replace--scan-process)
(set-process-sentinel projectile-replace--scan-process #'ignore)
(delete-process projectile-replace--scan-process))
(setq projectile-replace--scanning nil
projectile-replace--scan-process nil
projectile-replace--scan-timer nil)
(projectile-replace--render-preserve)
(when on-done (funcall on-done buffer)))))