Function: evil-set-range-properties

evil-set-range-properties is a byte-compiled function defined in evil-common.el.

Signature

(evil-set-range-properties RANGE PROPERTIES &optional COPY)

Documentation

Set RANGE's properties to PROPERTIES.

If COPY is non-nil, return a copy of RANGE.

Source Code

;; Defined in ~/.emacs.d/elpa/evil-20251108.138/evil-common.el
(defun evil-set-range-properties (range properties &optional copy)
  "Set RANGE's properties to PROPERTIES.
If COPY is non-nil, return a copy of RANGE."
  (when copy
    (setq range (evil-copy-range range)))
  (setcdr (if (evil-type range) (cddr range) (cdr range)) properties)
  range)