changeset 8608:36e9d2326608

(mouse-extend): In Transient Mark mode, use the region whenever it is active.
author Richard M. Stallman <rms@gnu.org>
date Wed, 24 Aug 1994 04:50:24 +0000
parents 01bbfe117001
children 145a583d9128
files lisp/mouse-sel.el
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/mouse-sel.el	Wed Aug 24 04:23:07 1994 +0000
+++ b/lisp/mouse-sel.el	Wed Aug 24 04:50:24 1994 +0000
@@ -264,8 +264,9 @@
 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)))