Function: evil-range
evil-range is a byte-compiled function defined in evil-common.el.
Signature
(evil-range BEG END &optional TYPE &rest PROPERTIES)
Documentation
Return a list (BEG END [TYPE] PROPERTIES...).
BEG and END are buffer positions (numbers or markers),
TYPE is a type as per evil-type-p, and PROPERTIES is
a property list.
Source Code
;; Defined in ~/.emacs.d/elpa/evil-20251108.138/evil-common.el
;;; Ranges
(defun evil-range (beg end &optional type &rest properties)
"Return a list (BEG END [TYPE] PROPERTIES...).
BEG and END are buffer positions (numbers or markers),
TYPE is a type as per `evil-type-p', and PROPERTIES is
a property list."
(let ((beg (evil-normalize-position beg))
(end (evil-normalize-position end)))
(when (and (numberp beg) (numberp end))
(evil-sort beg end)
(nconc (list beg end)
(when (evil-type-p type) (list type))
properties))))