diff options
| -rw-r--r-- | lisp/mouse.el | 5 |
1 files changed, 4 insertions, 1 deletions
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." | |||
| 414 | mouse-drag-overlay start-point))))))))) | 414 | mouse-drag-overlay start-point))))))))) |
| 415 | (if (consp event) | 415 | (if (consp event) |
| 416 | (let ((fun (key-binding (vector (car event))))) | 416 | (let ((fun (key-binding (vector (car event))))) |
| 417 | (if (fboundp fun) | 417 | ;; Run the binding of the terminating up-event, if possible. |
| 418 | ;; In the case of a multiple click, it gives the wrong results, | ||
| 419 | ;; because it would fail to set up a region. | ||
| 420 | (if (and (= (mod mouse-selection-click-count 3) 0) (fboundp fun)) | ||
| 418 | (funcall fun event) | 421 | (funcall fun event) |
| 419 | (if (not (= (overlay-start mouse-drag-overlay) | 422 | (if (not (= (overlay-start mouse-drag-overlay) |
| 420 | (overlay-end mouse-drag-overlay))) | 423 | (overlay-end mouse-drag-overlay))) |