diff options
| author | Richard M. Stallman | 1994-08-13 20:29:54 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-08-13 20:29:54 +0000 |
| commit | f598fb033e5ba7198995c88dee341c87acb775b4 (patch) | |
| tree | e7e1234f971f08a447491641e80b2ac04ea2a755 /lisp | |
| parent | 6b265868033e43cdb85a961f781150eac0fbc268 (diff) | |
| download | emacs-f598fb033e5ba7198995c88dee341c87acb775b4.tar.gz emacs-f598fb033e5ba7198995c88dee341c87acb775b4.zip | |
(mouse-set-mark): Select the window before saving point.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/mouse.el | 3 |
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." | |||
| 458 | Display cursor at that position for a second. | 458 | Display cursor at that position for a second. |
| 459 | This must be bound to a mouse click." | 459 | This 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) |