Function: evil-visual-make-region
evil-visual-make-region is an interactive and byte-compiled function
defined in evil-states.el.
Signature
(evil-visual-make-region MARK POINT &optional TYPE MESSAGE)
Documentation
Create an active region from MARK to POINT.
If TYPE is given, also set the Visual type. If MESSAGE is given, display it in the echo area.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/evil-20251108.138/evil-states.el
(defun evil-visual-make-region (mark point &optional type message)
"Create an active region from MARK to POINT.
If TYPE is given, also set the Visual type.
If MESSAGE is given, display it in the echo area."
(interactive)
(let* ((point (or point (point)))
(mark (or mark
(when (or (evil-visual-state-p)
(region-active-p))
(mark t))
point)))
(unless (evil-visual-state-p)
(evil-visual-state))
(evil-active-region 1)
(setq evil-visual-region-expanded nil)
(evil-visual-refresh mark point type)
(cond
((null evil-echo-state))
((stringp message)
(evil-echo "%s" message))
(message
(cond
((stringp evil-visual-state-message)
(evil-echo "%s" evil-visual-state-message))
((functionp evil-visual-state-message)
(funcall evil-visual-state-message)))))))