[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 9f2145f: Temporary enable transient-mark-mode for rectangle selec
From: |
Mattias Engdegård |
Subject: |
master 9f2145f: Temporary enable transient-mark-mode for rectangle selection |
Date: |
Sun, 1 Dec 2019 12:33:59 -0500 (EST) |
branch: master
commit 9f2145f42daab13aed5cf89fdb6a7c5579819ec0
Author: Mattias Engdegård <address@hidden>
Commit: Mattias Engdegård <address@hidden>
Temporary enable transient-mark-mode for rectangle selection
* lisp/mouse.el (mouse-drag-region-rectangle):
Enable transient-mark-mode during selection (bug#38431).
---
lisp/mouse.el | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/lisp/mouse.el b/lisp/mouse.el
index bc05a35..32996b2 100644
--- a/lisp/mouse.el
+++ b/lisp/mouse.el
@@ -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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 9f2145f: Temporary enable transient-mark-mode for rectangle selection,
Mattias Engdegård <=