Function: diff--indicator-matcher-helper
diff--indicator-matcher-helper is a byte-compiled function defined in
diff-mode.el.gz.
Signature
(diff--indicator-matcher-helper LIMIT REGEXP)
Documentation
Fontify added/removed lines from point to LIMIT using REGEXP.
If this is a Git patch, don't fontify lines before the first hunk, or in the email signature at the end.
Source Code
;; Defined in /usr/src/emacs/lisp/vc/diff-mode.el.gz
(defun diff--indicator-matcher-helper (limit regexp)
"Fontify added/removed lines from point to LIMIT using REGEXP.
If this is a Git patch, don't fontify lines before the first hunk, or in
the email signature at the end."
(catch 'return
(when (eq diff-buffer-type 'git)
(let ((preamble-end (diff--git-preamble-end))
(footer-start (diff--git-footer-start))
(beg (point))
(end limit))
(cond ((or (<= end preamble-end)
(>= beg footer-start))
(throw 'return nil))
;; end is after preamble, adjust beg:
((< beg preamble-end)
(goto-char preamble-end))
;; beg is before footer, adjust end:
((> end footer-start)
(setq limit footer-start)))))
(re-search-forward regexp limit t)))