summaryrefslogtreecommitdiff
path: root/lisp/mouse.el
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1995-05-15 23:00:16 +0000
committerRichard M. Stallman <rms@gnu.org>1995-05-15 23:00:16 +0000
commitbcde3748c6627f312397907fc87f6666fe695ddb (patch)
treeea418f8a5fbdeb5b65407b155c84057314c3344a /lisp/mouse.el
parent306faa42282c7749ab34f56d5443c871ce8966b9 (diff)
downloademacs-bcde3748c6627f312397907fc87f6666fe695ddb.tar.gz
(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.
Diffstat (limited to 'lisp/mouse.el')
-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."
(mouse-show-mark))
;; If we click this button again without moving it,
;; that time kill.
- (mouse-save-then-kill-delete-region (point) (mark))
+ (mouse-save-then-kill-delete-region (mark) (point))
(setq mouse-selection-click-count 0)
(setq mouse-save-then-kill-posn nil))
(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."
(goto-char new)
(set-mark new))
(setq deactivate-mark nil)))
- (kill-new (buffer-substring (point) (mark t)) t))
+ (kill-new (buffer-substring (point) (mark t)) t)
+ (mouse-show-mark))
;; Set the mark where point is, then move where clicked.
(mouse-set-mark-fast click)
(if before-scroll
(goto-char before-scroll))
(exchange-point-and-mark)
- (kill-ring-save (point) (mark t)))
- (mouse-show-mark)
+ (kill-new (buffer-substring (point) (mark t)) t))
(mouse-set-region-1)
(setq mouse-save-then-kill-posn
(list (car kill-ring) (point) click-posn)))))))