(mouse-set-mark): Select the window before saving point.

This commit is contained in:
Richard M. Stallman
1994-08-13 20:29:54 +00:00
parent 6b26586803
commit f598fb033e

View File

@@ -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)