summaryrefslogtreecommitdiff
path: root/lisp/mouse.el
diff options
context:
space:
mode:
authorGerd Moellmann <gerd@gnu.org>2000-03-09 20:08:49 +0000
committerGerd Moellmann <gerd@gnu.org>2000-03-09 20:08:49 +0000
commit1853aa6bc9d2cd9c74d8778f32785a616f0ba1ae (patch)
treead94ad35536f0bad690426d4d8c385927911a239 /lisp/mouse.el
parentf74bbbbf5574dd0be3237a179da1ead133ffc89f (diff)
downloademacs-1853aa6bc9d2cd9c74d8778f32785a616f0ba1ae.tar.gz
(mouse-drag-region): Don't run up-event handler
if hscroll has changed.
Diffstat (limited to 'lisp/mouse.el')
-rw-r--r--lisp/mouse.el8
1 files changed, 5 insertions, 3 deletions
diff --git a/lisp/mouse.el b/lisp/mouse.el
index 01884f11cfd..28f3ca2ba10 100644
--- a/lisp/mouse.el
+++ b/lisp/mouse.el
@@ -554,6 +554,7 @@ remains active. Otherwise, it remains until the next input event."
(start-point (posn-point start-posn))
(start-window (posn-window start-posn))
(start-frame (window-frame start-window))
+ (start-hscroll (window-hscroll start-window))
(bounds (window-edges start-window))
(top (nth 1 bounds))
(bottom (if (window-minibuffer-p start-window)
@@ -676,9 +677,10 @@ remains active. Otherwise, it remains until the next input event."
(mouse-set-region-1))))
(delete-overlay mouse-drag-overlay)
;; Run the binding of the terminating up-event.
- (if (fboundp fun)
- (setq unread-command-events
- (cons event unread-command-events)))))
+ (when (and (fboundp fun)
+ (= start-hscroll (window-hscroll start-window)))
+ (setq unread-command-events
+ (cons event unread-command-events)))))
(delete-overlay mouse-drag-overlay)))))
;; Commands to handle xterm-style multiple clicks.