aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1993-11-03 00:50:06 +0000
committerRichard M. Stallman1993-11-03 00:50:06 +0000
commit3544cfc9b9015b16c66bd827d7e80193320459a7 (patch)
treedb8dcfa5ce41944c3e71a5046711c2dbd23edc0c
parentbff8edcc17d9bb6fccc083abc4ec0ca7a64b65f1 (diff)
downloademacs-3544cfc9b9015b16c66bd827d7e80193320459a7.tar.gz
emacs-3544cfc9b9015b16c66bd827d7e80193320459a7.zip
(mouse-drag-region): Set this-command to mouse-set-point
if not setting the mark. (mouse-save-then-kill): Consider mark-active only in transient mark md.
-rw-r--r--lisp/mouse.el6
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.