Function: cider-propertize-region

cider-propertize-region is a macro defined in cider-util.el.

Signature

(cider-propertize-region PROPS &rest BODY)

Documentation

Execute BODY and add PROPS to all the inserted text.

More precisely, PROPS are added to the region between the point's positions before and after executing BODY.

Source Code

;; Defined in ~/.emacs.d/elpa/cider-20260414.1619/cider-util.el
(defmacro cider-propertize-region (props &rest body)
  "Execute BODY and add PROPS to all the inserted text.
More precisely, PROPS are added to the region between the point's
positions before and after executing BODY."
  (declare (indent 1)
           (debug (sexp body)))
  (let ((start (make-symbol "start")))
    `(let ((,start (point)))
       (prog1 (progn ,@body)
         (add-text-properties ,start (point) ,props)))))