Function: consult--each-line
consult--each-line is a macro defined in consult.el.
Signature
(consult--each-line BEG END &rest BODY)
Documentation
Iterate over each line.
The line beginning/ending BEG/END is bound in BODY.
Source Code
;; Defined in /nix/store/6higv2v1wk916v4ynnybyrdkfy2gq44d-emacs-packages-deps/share/emacs/site-lisp/elpa/consult-20261004.957/consult.el
(defmacro consult--each-line (beg end &rest body)
"Iterate over each line.
The line beginning/ending BEG/END is bound in BODY."
(declare (indent 2) (debug (symbolp symbolp body)))
(cl-with-gensyms (max)
`(save-excursion
(let ((,beg (point-min)) (,max (point-max)) ,end)
(while (< ,beg ,max)
(goto-char ,beg)
(setq ,end (pos-eol))
,@body
(setq ,beg (1+ ,end)))))))