Function: evil-revert-reveal
evil-revert-reveal is a byte-compiled function defined in
evil-commands.el.
Signature
(evil-revert-reveal OPEN-SPOTS)
Documentation
Unconditionally close overlays in OPEN-SPOTS in current window.
Modified version of reveal-close-old-overlays from
reveal.el. OPEN-SPOTS is a local version of reveal-open-spots.
Source Code
;; Defined in ~/.emacs.d/elpa/evil-20251108.138/evil-commands.el
(defun evil-revert-reveal (open-spots)
"Unconditionally close overlays in OPEN-SPOTS in current window.
Modified version of `reveal-close-old-overlays' from
reveal.el. OPEN-SPOTS is a local version of `reveal-open-spots'."
(dolist (spot open-spots)
(let ((window (car spot))
(ol (cdr spot)))
(unless (eq window (selected-window))
(error "evil-revert-reveal: slot with wrong window"))
(let* ((inv (overlay-get ol 'reveal-invisible))
(open (or (overlay-get ol 'reveal-toggle-invisible)
(get inv 'reveal-toggle-invisible)
(overlay-get ol 'isearch-open-invisible-temporary))))
(if (and (overlay-start ol) ; Check if still live
open)
(condition-case err
(funcall open ol t)
(error (message "!!Reveal-hide (funcall %s %s t): %s !!"
open ol err)))
(overlay-put ol 'invisible inv))
;; Remove the overlay from the list of open spots.
(overlay-put ol 'reveal-invisible nil)))))