Temporary enable transient-mark-mode for rectangle selection
* lisp/mouse.el (mouse-drag-region-rectangle): Enable transient-mark-mode during selection (bug#38431).
This commit is contained in:
@@ -2007,6 +2007,10 @@ This must be bound to a button-down mouse event."
|
||||
(setq dragged t)
|
||||
(mouse-minibuffer-check start-event)
|
||||
(deactivate-mark)
|
||||
(setq-local transient-mark-mode
|
||||
(if (eq transient-mark-mode 'lambda)
|
||||
'(only)
|
||||
(cons 'only transient-mark-mode)))
|
||||
(posn-set-point start-pos)
|
||||
(rectangle-mark-mode)
|
||||
;; Only tell rectangle about the exact column if we are possibly
|
||||
|
||||
Reference in New Issue
Block a user