aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Rudalics2007-07-15 08:31:26 +0000
committerMartin Rudalics2007-07-15 08:31:26 +0000
commit1d16d0504bc8dd49062ef7c451c7d4f68456b779 (patch)
tree52cfabaaa17fdb29fbdbcc243696d4797a9fc243
parent82fe1aeda6647e15874f7c7c5299f82abd2cbb5c (diff)
downloademacs-1d16d0504bc8dd49062ef7c451c7d4f68456b779.tar.gz
emacs-1d16d0504bc8dd49062ef7c451c7d4f68456b779.zip
(mouse-drag-track): Reset transient-mark-mode to nil
when handling the terminating event.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/mouse.el5
2 files changed, 10 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 0faca7d41bd..a18a61fe29b 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12007-07-15 Martin Rudalics <rudalics@gmx.at>
2
3 * mouse.el (mouse-drag-track): Reset transient-mark-mode to nil
4 when handling the terminating event.
5
12007-07-15 Jeff Miller <jmiller@cablespeed.com> (tiny change) 62007-07-15 Jeff Miller <jmiller@cablespeed.com> (tiny change)
2 7
3 * calendar/cal-bahai.el (calendar-goto-bahai-date): Add autoload 8 * calendar/cal-bahai.el (calendar-goto-bahai-date): Add autoload
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)