Function: evil-with-active-region
evil-with-active-region is a macro defined in evil-common.el.
Signature
(evil-with-active-region BEG END &rest BODY)
Documentation
Execute BODY with an active region from BEG to END.
Source Code
;; Defined in ~/.emacs.d/elpa/evil-20251108.138/evil-common.el
(defmacro evil-with-active-region (beg end &rest body)
"Execute BODY with an active region from BEG to END."
(declare (indent 2)
(debug t))
`(let ((beg ,beg) (end ,end)
evil-transient-vals)
(evil-with-transient-mark-mode
(save-excursion
(evil-active-region 1)
(evil-move-mark beg)
(goto-char end)
,@body))))