aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias EngdegÄrd2019-12-01 18:31:34 +0100
committerMattias EngdegÄrd2019-12-01 18:32:43 +0100
commit9f2145f42daab13aed5cf89fdb6a7c5579819ec0 (patch)
tree420728155f06484b3092b87e21de7966da86a1c3
parent8b5c5a9a9b307a9593dbc643fd97885435191095 (diff)
downloademacs-9f2145f42daab13aed5cf89fdb6a7c5579819ec0.tar.gz
emacs-9f2145f42daab13aed5cf89fdb6a7c5579819ec0.zip
Temporary enable transient-mark-mode for rectangle selection
* lisp/mouse.el (mouse-drag-region-rectangle): Enable transient-mark-mode during selection (bug#38431).
-rw-r--r--lisp/mouse.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/lisp/mouse.el b/lisp/mouse.el
index bc05a35009e..32996b2eded 100644
--- a/lisp/mouse.el
+++ b/lisp/mouse.el
@@ -2007,6 +2007,10 @@ This must be bound to a button-down mouse event."
2007 (setq dragged t) 2007 (setq dragged t)
2008 (mouse-minibuffer-check start-event) 2008 (mouse-minibuffer-check start-event)
2009 (deactivate-mark) 2009 (deactivate-mark)
2010 (setq-local transient-mark-mode
2011 (if (eq transient-mark-mode 'lambda)
2012 '(only)
2013 (cons 'only transient-mark-mode)))
2010 (posn-set-point start-pos) 2014 (posn-set-point start-pos)
2011 (rectangle-mark-mode) 2015 (rectangle-mark-mode)
2012 ;; Only tell rectangle about the exact column if we are possibly 2016 ;; Only tell rectangle about the exact column if we are possibly