From: Richard M. Stallman Date: Thu, 26 Jan 1995 03:18:45 +0000 (+0000) Subject: (mouse-drag-region): Modify previous change--don't run the ordinary binding X-Git-Tag: emacs-19.34~5304 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=bfbcf12e477d634d42a8d739b403ebfd536ddfb8;p=emacs.git (mouse-drag-region): Modify previous change--don't run the ordinary binding in the case of a multiple click. --- diff --git a/lisp/mouse.el b/lisp/mouse.el index c730f8a929f..48ec86079a3 100644 --- a/lisp/mouse.el +++ b/lisp/mouse.el @@ -414,7 +414,10 @@ release the mouse button. Otherwise, it does not." mouse-drag-overlay start-point))))))))) (if (consp event) (let ((fun (key-binding (vector (car event))))) - (if (fboundp fun) + ;; Run the binding of the terminating up-event, if possible. + ;; In the case of a multiple click, it gives the wrong results, + ;; because it would fail to set up a region. + (if (and (= (mod mouse-selection-click-count 3) 0) (fboundp fun)) (funcall fun event) (if (not (= (overlay-start mouse-drag-overlay) (overlay-end mouse-drag-overlay)))