Function: majutsu-jjdescription--overlong-summary-matcher

majutsu-jjdescription--overlong-summary-matcher is a natively compiled function defined in majutsu-jjdescription.el.

Signature

(majutsu-jjdescription--overlong-summary-matcher LIMIT)

Documentation

Match the configured overlong part of the real summary before LIMIT.

Source Code

;; Defined in /nix/store/jagqw3nms546pad0gxi5f3wsckk6pji7-emacs-packages-deps/share/emacs/site-lisp/majutsu-jjdescription.el
(defun majutsu-jjdescription--overlong-summary-matcher (limit)
  "Match the configured overlong part of the real summary before LIMIT."
  (majutsu-jjdescription--refresh-summary-range)
  (when (and (integerp majutsu-jjdescription-summary-max-length)
             (>= majutsu-jjdescription-summary-max-length 0)
             majutsu-jjdescription--summary-range)
    (let* ((summary-beg (car majutsu-jjdescription--summary-range))
           (summary-end (cdr majutsu-jjdescription--summary-range))
           (beg (+ summary-beg majutsu-jjdescription-summary-max-length))
           (end (min summary-end limit)))
      (setq beg (max beg (point)))
      (when (< beg end)
        (goto-char end)
        (set-match-data (list beg end))
        t))))