Function: evil-mouse-drag-region

evil-mouse-drag-region is an interactive and byte-compiled function defined in evil-commands.el.

Signature

(evil-mouse-drag-region START-EVENT)

Documentation

Set the region to the text that the mouse is dragged over.

Highlight the drag area as you move the mouse. This must be bound to a button-down mouse event.

If the click is in the echo area, display the *Messages* buffer.

START-EVENT should be the event that started the drag.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/evil-20251108.138/evil-commands.el
;;; Mouse handling

;; Large parts of this code are taken from mouse.el which is
;; distributed with GNU Emacs
(defun evil-mouse-drag-region (start-event)
  "Set the region to the text that the mouse is dragged over.
Highlight the drag area as you move the mouse.
This must be bound to a button-down mouse event.

If the click is in the echo area, display the `*Messages*' buffer.

START-EVENT should be the event that started the drag."
  (interactive "e")
  ;; Give temporary modes such as isearch a chance to turn off.
  (run-hooks 'mouse-leave-buffer-hook)
  (evil-mouse-drag-track start-event t))