diff options
| -rw-r--r-- | lisp/mouse.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/mouse.el b/lisp/mouse.el index 90175551a63..7bdcae71c8d 100644 --- a/lisp/mouse.el +++ b/lisp/mouse.el | |||
| @@ -249,7 +249,8 @@ release the mouse button. Otherwise, it does not." | |||
| 249 | (push-mark (overlay-start mouse-drag-overlay) t t) | 249 | (push-mark (overlay-start mouse-drag-overlay) t t) |
| 250 | (goto-char (overlay-end mouse-drag-overlay)) | 250 | (goto-char (overlay-end mouse-drag-overlay)) |
| 251 | (copy-region-as-kill (point) (mark t))) | 251 | (copy-region-as-kill (point) (mark t))) |
| 252 | (goto-char (overlay-end mouse-drag-overlay))) | 252 | (goto-char (overlay-end mouse-drag-overlay)) |
| 253 | (setq this-command 'mouse-set-point)) | ||
| 253 | (if (fboundp fun) | 254 | (if (fboundp fun) |
| 254 | (funcall fun event))))) | 255 | (funcall fun event))))) |
| 255 | (delete-overlay mouse-drag-overlay)))) | 256 | (delete-overlay mouse-drag-overlay)))) |
| @@ -447,9 +448,8 @@ If you do this twice in the same position, the selection is killed." | |||
| 447 | ;; mouse-save-then-kill, delete the text from the buffer. | 448 | ;; mouse-save-then-kill, delete the text from the buffer. |
| 448 | (mouse-save-then-kill-delete-region) | 449 | (mouse-save-then-kill-delete-region) |
| 449 | (if (or (eq last-command 'mouse-save-then-kill) | 450 | (if (or (eq last-command 'mouse-save-then-kill) |
| 450 | mark-active | 451 | (and mark-active transient-mark-mode) |
| 451 | (and (eq last-command 'mouse-drag-region) | 452 | (and (eq last-command 'mouse-drag-region) |
| 452 | (mark t) | ||
| 453 | (or mark-even-if-inactive | 453 | (or mark-even-if-inactive |
| 454 | (not transient-mark-mode)))) | 454 | (not transient-mark-mode)))) |
| 455 | ;; We have a selection or suitable region, so adjust it. | 455 | ;; We have a selection or suitable region, so adjust it. |