Function: magit-section-highlight
magit-section-highlight is a byte-compiled function defined in
magit-section.el.
Signature
(magit-section-highlight ARG &rest ARGS)
Implementations
(magit-section-highlight (SECTION magit-section)) in `magit-section.el'.
Undocumented
Source Code
;; Defined in ~/.emacs.d/elpa/magit-section-20260330.1102/magit-section.el
(cl-defmethod magit-section-highlight ((section magit-section))
(pcase-let*
(((eieio start content end children heading-highlight-face) section)
(headlight heading-highlight-face)
(selective (magit-section-selective-highlight-p section)))
(cond
(selective
(magit-section-highlight-range start (or content end) headlight)
(cond (children
(let ((child-start (oref (car children) start)))
(when (and content (< content child-start))
(magit-section-highlight-range content child-start)))
(mapc #'magit-section-highlight children))
((and content (not (slot-boundp section 'painted)))
(magit-section-highlight-range content end))
;; Unfortunate kludge for delayed hunk refinement.
((magit-section--refine section))))
(headlight
(magit-section-highlight-range start (or content end) headlight)
(when content
(magit-section-highlight-range (if headlight content start) end)))
((magit-section-highlight-range start end)))))