summaryrefslogtreecommitdiff
path: root/lisp/mouse.el
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1994-08-13 20:29:54 +0000
committerRichard M. Stallman <rms@gnu.org>1994-08-13 20:29:54 +0000
commitd038475f9031e203b144f1a49e372113ae6284cc (patch)
tree60d5be617148c6226fab51040137c4e227c24479 /lisp/mouse.el
parentd9c6a6230c741c0eed5c4ef84a9aa8e15564a04b (diff)
downloademacs-d038475f9031e203b144f1a49e372113ae6284cc.tar.gz
(mouse-set-mark): Select the window before saving point.
Diffstat (limited to 'lisp/mouse.el')
-rw-r--r--lisp/mouse.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/lisp/mouse.el b/lisp/mouse.el
index d6d0c4bb43c..0384a6349df 100644
--- a/lisp/mouse.el
+++ b/lisp/mouse.el
@@ -458,6 +458,9 @@ If DIR is positive skip forward; if negative, skip backward."
Display cursor at that position for a second.
This must be bound to a mouse click."
(interactive "e")
+ (mouse-minibuffer-check click)
+ (select-window (posn-window (event-start click)))
+ ;; We don't use save-excursion because that preserves the mark too.
(let ((point-save (point)))
(unwind-protect
(progn (mouse-set-point click)