Function: projectile-replace--binary-p
projectile-replace--binary-p is a byte-compiled function defined in
projectile.el.
Signature
(projectile-replace--binary-p)
Documentation
Return non-nil when the current buffer looks like binary content.
Only the leading portion is inspected, which is enough to skip files whose NUL bytes would make an in-buffer replacement meaningless.
Source Code
;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
(defun projectile-replace--binary-p ()
"Return non-nil when the current buffer looks like binary content.
Only the leading portion is inspected, which is enough to skip files
whose NUL bytes would make an in-buffer replacement meaningless."
(save-excursion
(goto-char (point-min))
(search-forward "\0" (min (point-max) (+ (point-min) 8000)) t)))