]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/gnus/message.el (message-exchange-point-and-mark): Call
authorChong Yidong <cyd@stupidchicken.com>
Fri, 1 Jan 2010 20:42:22 +0000 (15:42 -0500)
committerChong Yidong <cyd@stupidchicken.com>
Fri, 1 Jan 2010 20:42:22 +0000 (15:42 -0500)
exchange-point-and-mark with an argument rather than setting
mark-active by hand (Bug#5175).

lisp/gnus/ChangeLog
lisp/gnus/message.el

index 159f7c7e825301a0d445ae4f803602d713061369..dcbcb81a3710466badd7194d7dd8f632e378c5ce 100644 (file)
@@ -1,3 +1,9 @@
+2010-01-01  Chong Yidong  <cyd@stupidchicken.com>
+
+       * message.el (message-exchange-point-and-mark): Call
+       exchange-point-and-mark with an argument rather than setting
+       mark-active by hand (Bug#5175).
+
 2009-12-18  Katsumi Yamaoka  <yamaoka@jpl.org>
 
        * nntp.el (nntp-service-to-port): Work for service expressed with
index 8726614b67896ac8bc4175ae8d8ffbe1656d3b1a..655aa4c3e6b7e7a0d235dd3670ba656bea393908 100644 (file)
@@ -7505,10 +7505,7 @@ which specify the range to operate on."
 
 (defun message-exchange-point-and-mark ()
   "Exchange point and mark, but don't activate region if it was inactive."
-  (unless (prog1
-             (message-mark-active-p)
-           (exchange-point-and-mark))
-    (setq mark-active nil)))
+  (exchange-point-and-mark transient-mark-mode))
 
 (defalias 'message-make-overlay 'make-overlay)
 (defalias 'message-delete-overlay 'delete-overlay)