Function: majutsu-row-parse-at-point

majutsu-row-parse-at-point is a natively compiled function defined in majutsu-row.el.

Signature

(majutsu-row-parse-at-point COMPILED &optional END)

Documentation

Parse one sequentially encoded row entry at point using COMPILED.

When END is non-nil, do not read beyond END while attaching suffix lines.

Source Code

;; Defined in /nix/store/jagqw3nms546pad0gxi5f3wsckk6pji7-emacs-packages-deps/share/emacs/site-lisp/majutsu-row.el
(defun majutsu-row-parse-at-point (compiled &optional end)
  "Parse one sequentially encoded row entry at point using COMPILED.
When END is non-nil, do not read beyond END while attaching suffix lines."
  (let* ((entry-beg (line-beginning-position))
         (limit (or end (point-max)))
         (start-pos (majutsu-row-line-token-position
                     majutsu-row-start-token entry-beg (line-end-position))))
    (when start-pos
      (save-excursion
        (goto-char entry-beg)
        (when-let* ((parsed (majutsu-row--parse-entry-record-at-point compiled)))
          (let* ((entry (car parsed))
                 (record-end (cdr parsed))
                 (next-marker (and (< record-end limit)
                                   (majutsu-row--next-marker-position
                                    record-end limit))))
            (majutsu-row--finalize-entry-gap entry record-end
                                             (or next-marker limit)
                                             next-marker)))))))