Commit 9f2145f4 authored by Mattias Engdegård's avatar Mattias Engdegård

Temporary enable transient-mark-mode for rectangle selection

* lisp/mouse.el (mouse-drag-region-rectangle):
Enable transient-mark-mode during selection (bug#38431).
parent 8b5c5a9a
Pipeline #4218 failed with stage
in 97 minutes and 52 seconds
......@@ -2007,6 +2007,10 @@ This must be bound to a button-down mouse event."
(setq dragged t)
(mouse-minibuffer-check start-event)
(setq-local transient-mark-mode
(if (eq transient-mark-mode 'lambda)
(cons 'only transient-mark-mode)))
(posn-set-point start-pos)
;; Only tell rectangle about the exact column if we are possibly
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment