aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorRichard M. Stallman1994-08-13 20:29:54 +0000
committerRichard M. Stallman1994-08-13 20:29:54 +0000
commitf598fb033e5ba7198995c88dee341c87acb775b4 (patch)
treee7e1234f971f08a447491641e80b2ac04ea2a755 /lisp
parent6b265868033e43cdb85a961f781150eac0fbc268 (diff)
downloademacs-f598fb033e5ba7198995c88dee341c87acb775b4.tar.gz
emacs-f598fb033e5ba7198995c88dee341c87acb775b4.zip
(mouse-set-mark): Select the window before saving point.
Diffstat (limited to 'lisp')
-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."
458Display cursor at that position for a second. 458Display cursor at that position for a second.
459This must be bound to a mouse click." 459This must be bound to a mouse click."
460 (interactive "e") 460 (interactive "e")
461 (mouse-minibuffer-check click)
462 (select-window (posn-window (event-start click)))
463 ;; We don't use save-excursion because that preserves the mark too.
461 (let ((point-save (point))) 464 (let ((point-save (point)))
462 (unwind-protect 465 (unwind-protect
463 (progn (mouse-set-point click) 466 (progn (mouse-set-point click)