Function: redisplay--highlight-overlay-function
redisplay--highlight-overlay-function is a byte-compiled function
defined in simple.el.gz.
Signature
(redisplay--highlight-overlay-function START END WINDOW ROL &optional FACE)
Documentation
Update the overlay ROL in WINDOW with FACE in range START-END.
Source Code
;; Defined in /usr/src/emacs/lisp/simple.el.gz
(defun redisplay--highlight-overlay-function (start end window rol &optional face)
"Update the overlay ROL in WINDOW with FACE in range START-END."
(unless face (setq face 'region))
(if (not (overlayp rol))
(let ((nrol (make-overlay start end)))
(funcall redisplay-unhighlight-region-function rol)
(overlay-put nrol 'window window)
(overlay-put nrol 'face face)
;; Normal priority so that a large region doesn't hide all the
;; overlays within it, but high secondary priority so that if it
;; ends/starts in the middle of a small overlay, that small overlay
;; won't hide the region's boundaries.
(overlay-put nrol 'priority '(nil . 100))
nrol)
(unless (eq (overlay-get rol 'face) face)
(overlay-put rol 'face face))
(unless (and (eq (overlay-buffer rol) (current-buffer))
(eq (overlay-start rol) start)
(eq (overlay-end rol) end))
(move-overlay rol start end (current-buffer)))
rol))