]> git.eshelyaron.com Git - emacs.git/commitdiff
(mouse-set-region-1): If transient-mark-mode
authorRichard M. Stallman <rms@gnu.org>
Fri, 9 Jul 2004 16:54:04 +0000 (16:54 +0000)
committerRichard M. Stallman <rms@gnu.org>
Fri, 9 Jul 2004 16:54:04 +0000 (16:54 +0000)
is `identity', change it to `only'.

lisp/mouse.el

index 7f9d080478a7bcfc953190091ccc27761e0c6c9b..b73967b99dccf2abef8956c348da81dcfd9534e4 100644 (file)
@@ -625,7 +625,8 @@ This should be bound to a mouse drag event."
 
 (defun mouse-set-region-1 ()
   ;; Set transient-mark-mode for a little while.
-  (setq transient-mark-mode (or transient-mark-mode 'only))
+  (if (memq transient-mark-mode '(nil identity))
+      (setq transient-mark-mode 'only))
   (setq mouse-last-region-beg (region-beginning))
   (setq mouse-last-region-end (region-end))
   (setq mouse-last-region-tick (buffer-modified-tick)))