Function: magit-todos--buffer-items

magit-todos--buffer-items is a natively compiled function defined in magit-todos.el.

Signature

(magit-todos--buffer-items RESULTS-REGEXP)

Documentation

Return list of magit-todos-item found in current buffer for RESULTS-REGEXP.

Source Code

;; Defined in /nix/store/xy37aj9089qvbs5clw0qszpi3hrh3mxx-emacs-packages-deps/share/emacs/site-lisp/elpa/magit-todos-20250928.1611/magit-todos.el
(defun magit-todos--buffer-items (results-regexp)
  "Return list of `magit-todos-item' found in current buffer for RESULTS-REGEXP."
  (let ((items))
    (save-excursion
      (goto-char (point-min))
      (while (not (eobp))
        (--when-let (magit-todos--line-item results-regexp)
          (push it items))
        (forward-line 1)))
    (nreverse items)))