Commit c89c189e authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(mouse-extend): In Transient Mark mode, use the region

whenever it is active.
parent ca2c3f39
......@@ -264,8 +264,9 @@ See documentation for mouse-select for more details.
This should be bound to a down-mouse event."
(interactive "e")
(if EVENT (select-window (posn-window (event-end EVENT))))
(let* ((min (if (and EVENT mark-active) (region-beginning) (point)))
(max (if (and EVENT mark-active) (region-end) (point)))
(let* ((use-region (and (or EVENT transient-mark-mode) mark-active))
(min (if use-region (region-beginning) (point)))
(max (if use-region (region-end) (point)))
(orig-window (selected-window))
(orig-window-frame (window-frame orig-window))
(top (nth 1 (window-edges orig-window)))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment