Function: cider--make-overlay

cider--make-overlay is a byte-compiled function defined in cider-overlays.el.

Signature

(cider--make-overlay L R TYPE &rest PROPS)

Documentation

Place an overlay between L and R and return it.

TYPE is a symbol put on the overlay's category property. It is used to easily remove all overlays from a region with:
    (remove-overlays start end 'category TYPE)
PROPS is a plist of properties and values to add to the overlay.

Source Code

;; Defined in ~/.emacs.d/elpa/cider-20260414.1619/cider-overlays.el
(defun cider--make-overlay (l r type &rest props)
  "Place an overlay between L and R and return it.
TYPE is a symbol put on the overlay's category property.  It is used to
easily remove all overlays from a region with:
    (remove-overlays start end \\='category TYPE)
PROPS is a plist of properties and values to add to the overlay."
  (let ((o (make-overlay l (or r l) (current-buffer))))
    (overlay-put o 'category type)
    (overlay-put o 'cider-temporary t)
    (while props (overlay-put o (pop props) (pop props)))
    (push #'cider--delete-overlay (overlay-get o 'modification-hooks))
    o))