aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1995-05-15 23:00:16 +0000
committerRichard M. Stallman1995-05-15 23:00:16 +0000
commitbcde3748c6627f312397907fc87f6666fe695ddb (patch)
treeea418f8a5fbdeb5b65407b155c84057314c3344a
parent306faa42282c7749ab34f56d5443c871ce8966b9 (diff)
downloademacs-bcde3748c6627f312397907fc87f6666fe695ddb.tar.gz
emacs-bcde3748c6627f312397907fc87f6666fe695ddb.zip
(mouse-save-then-kill): When making a new region
and not adjusting an old one, always make new kill-ring entry and don't call mouse-show-mark.
-rw-r--r--lisp/mouse.el8
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/mouse.el b/lisp/mouse.el
index a889706f3f7..562d139a64c 100644
--- a/lisp/mouse.el
+++ b/lisp/mouse.el
@@ -677,7 +677,7 @@ If you do this twice in the same position, the selection is killed."
677 (mouse-show-mark)) 677 (mouse-show-mark))
678 ;; If we click this button again without moving it, 678 ;; If we click this button again without moving it,
679 ;; that time kill. 679 ;; that time kill.
680 (mouse-save-then-kill-delete-region (point) (mark)) 680 (mouse-save-then-kill-delete-region (mark) (point))
681 (setq mouse-selection-click-count 0) 681 (setq mouse-selection-click-count 0)
682 (setq mouse-save-then-kill-posn nil)) 682 (setq mouse-save-then-kill-posn nil))
683 (if (and (eq last-command 'mouse-save-then-kill) 683 (if (and (eq last-command 'mouse-save-then-kill)
@@ -709,14 +709,14 @@ If you do this twice in the same position, the selection is killed."
709 (goto-char new) 709 (goto-char new)
710 (set-mark new)) 710 (set-mark new))
711 (setq deactivate-mark nil))) 711 (setq deactivate-mark nil)))
712 (kill-new (buffer-substring (point) (mark t)) t)) 712 (kill-new (buffer-substring (point) (mark t)) t)
713 (mouse-show-mark))
713 ;; Set the mark where point is, then move where clicked. 714 ;; Set the mark where point is, then move where clicked.
714 (mouse-set-mark-fast click) 715 (mouse-set-mark-fast click)
715 (if before-scroll 716 (if before-scroll
716 (goto-char before-scroll)) 717 (goto-char before-scroll))
717 (exchange-point-and-mark) 718 (exchange-point-and-mark)
718 (kill-ring-save (point) (mark t))) 719 (kill-new (buffer-substring (point) (mark t)) t))
719 (mouse-show-mark)
720 (mouse-set-region-1) 720 (mouse-set-region-1)
721 (setq mouse-save-then-kill-posn 721 (setq mouse-save-then-kill-posn
722 (list (car kill-ring) (point) click-posn))))))) 722 (list (car kill-ring) (point) click-posn)))))))