diff options
| author | Richard M. Stallman | 1995-01-26 03:18:45 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1995-01-26 03:18:45 +0000 |
| commit | bfbcf12e477d634d42a8d739b403ebfd536ddfb8 (patch) | |
| tree | 0987fe25118b833746e26aa5c9d786e97c41652c | |
| parent | ad14280fb7d234c52aa1b4119081d9254c0bd116 (diff) | |
| download | emacs-bfbcf12e477d634d42a8d739b403ebfd536ddfb8.tar.gz emacs-bfbcf12e477d634d42a8d739b403ebfd536ddfb8.zip | |
(mouse-drag-region): Modify previous change--don't run the ordinary binding
in the case of a multiple click.
| -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))) |