# HG changeset patch # User Gerd Moellmann # Date 952632458 0 # Node ID 7421de9165d2120f66f55036866451f256166d0a # Parent 25557ce6a3a031678808887933a3eebc85d83980 (mouse-drag-region): Don't run up-event handler if hscroll has changed. diff -r 25557ce6a3a0 -r 7421de9165d2 lisp/mouse.el --- a/lisp/mouse.el Thu Mar 09 13:59:23 2000 +0000 +++ b/lisp/mouse.el Thu Mar 09 20:07:38 2000 +0000 @@ -554,6 +554,7 @@ (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 @@ (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.