aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Rudalics2007-07-08 08:21:13 +0000
committerMartin Rudalics2007-07-08 08:21:13 +0000
commit177ffe92bfbea69c11934aadc97c12312938469c (patch)
treef6dc50268d71261b8db54d4bbdbb20e3a7ee0097
parent236e165a5a78f40f74a8c5739dc1ba9485b87ec6 (diff)
downloademacs-177ffe92bfbea69c11934aadc97c12312938469c.tar.gz
emacs-177ffe92bfbea69c11934aadc97c12312938469c.zip
(mouse-drag-track): Reset transient-mark-mode to nil
when handling the terminating event.
-rw-r--r--lisp/mouse.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/lisp/mouse.el b/lisp/mouse.el
index 27b32e9f6f6..5577b94d01a 100644
--- a/lisp/mouse.el
+++ b/lisp/mouse.el
@@ -1013,6 +1013,11 @@ should only be used by mouse-drag-region."
1013 (overlay-start mouse-drag-overlay)) 1013 (overlay-start mouse-drag-overlay))
1014 region-termination)) 1014 region-termination))
1015 last-command this-command) 1015 last-command this-command)
1016 (when (eq transient-mark-mode 'identity)
1017 ;; Reset `transient-mark-mode' to avoid expanding the region
1018 ;; while scrolling (compare thread on "Erroneous selection
1019 ;; extension ..." on bug-gnu-emacs from 2007-06-10).
1020 (setq transient-mark-mode nil))
1016 (push-mark region-commencement t t) 1021 (push-mark region-commencement t t)
1017 (goto-char region-termination) 1022 (goto-char region-termination)
1018 (if (not do-mouse-drag-region-post-process) 1023 (if (not do-mouse-drag-region-post-process)