mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-04 14:40:54 -08:00
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:
parent
8b5c5a9a9b
commit
9f2145f42d
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue