Function: majutsu-row-wash-buffer

majutsu-row-wash-buffer is a natively compiled function defined in majutsu-row.el.

Signature

(majutsu-row-wash-buffer COMPILED)

Documentation

Wash all row entries in the current narrowed buffer.

This consumes one root row at a time in Magit wash style.

Source Code

;; Defined in /nix/store/jagqw3nms546pad0gxi5f3wsckk6pji7-emacs-packages-deps/share/emacs/site-lisp/majutsu-row.el
(defun majutsu-row-wash-buffer (compiled)
  "Wash all row entries in the current narrowed buffer.
This consumes one root row at a time in Magit wash style."
  (let ((inhibit-read-only t)
        roots
        entries
        diagnostics)
    (goto-char (point-min))
    (magit-wash-sequence
     (lambda ()
       (cond
        ((eobp) nil)
        ((when-let* ((entry (majutsu-row-wash-entry compiled (point-max))))
           (push entry roots)
           (push entry entries)
           t))
        (t
         (when-let* ((diagnostic (majutsu-row--diagnostic-for-current-line)))
           (push diagnostic diagnostics))
         (majutsu-row--delete-current-line)
         (not (eobp))))))
    (setq roots (nreverse roots)
          entries (nreverse entries)
          diagnostics (nreverse diagnostics))
    (majutsu-row-report-diagnostics diagnostics)
    (majutsu-row-set-buffer-data compiled entries roots)
    entries))