Function: consult--point-placement
consult--point-placement is a natively compiled function defined in
consult.el.
Signature
(consult--point-placement STR START &rest IGNORED-FACES)
Documentation
Compute point placement from STR with START offset.
IGNORED-FACES are ignored when searching for matches. Return cons of point position and a list of match begin/end pairs.
Source Code
;; Defined in /nix/store/6higv2v1wk916v4ynnybyrdkfy2gq44d-emacs-packages-deps/share/emacs/site-lisp/elpa/consult-20261004.957/consult.el
(defun consult--point-placement (str start &rest ignored-faces)
"Compute point placement from STR with START offset.
IGNORED-FACES are ignored when searching for matches.
Return cons of point position and a list of match begin/end pairs."
(let* ((matches (apply #'consult--find-highlights str start ignored-faces))
(pos (pcase-exhaustive consult-point-placement
('match-beginning (or (caar matches) 0))
('match-end (or (cdar (last matches)) 0))
('line-beginning 0))))
(dolist (match matches)
(decf (car match) pos)
(decf (cdr match) pos))
(cons pos matches)))