Function: projectile-search--render-line
projectile-search--render-line is a byte-compiled function defined in
projectile.el.
Signature
(projectile-search--render-line M)
Documentation
Return the propertized results line for match M.
The line is LINE:COL: CONTEXT with the matched span highlighted; there
is no replacement preview and no enable/disable indicator. The whole
line carries the match struct under the projectile-replace-match text
property so the shared navigation, visit and filter commands find it.
Source Code
;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
(defun projectile-search--render-line (m)
"Return the propertized results line for match M.
The line is `LINE:COL: CONTEXT' with the matched span highlighted; there
is no replacement preview and no enable/disable indicator. The whole
line carries the match struct under the `projectile-replace-match' text
property so the shared navigation, visit and filter commands find it."
(let* ((col (projectile-replace--match-column m))
(ctx (projectile-replace--match-context m))
(mstr (projectile-replace--match-string m))
(before (substring ctx 0 (min col (length ctx))))
(after (if (<= (+ col (length mstr)) (length ctx))
(substring ctx (+ col (length mstr)))
""))
(highlight (propertize mstr 'face 'projectile-replace-match))
(locator (propertize (format "%d:%d: "
(projectile-replace--match-line m)
(1+ col))
'face 'projectile-replace-line-number))
(line (concat locator before highlight after "\n")))
(propertize line 'projectile-replace-match m)))