2010-01-02 Chong Yidong <cyd@stupidchicken.com>
authorKatsumi Yamaoka <yamaoka@jpl.org>
Tue, 5 Jan 2010 02:22:52 +0000 (02:22 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Tue, 5 Jan 2010 02:22:52 +0000 (02:22 +0000)
* message.el (message-exchange-point-and-mark): Rework last change to
avoid using optional arg of exchange-point-and-mark, for backward
compatibility.

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).

lisp/ChangeLog
lisp/message.el

index b2ab724..e84ee71 100644 (file)
@@ -1,3 +1,15 @@
+2010-01-02  Chong Yidong  <cyd@stupidchicken.com>
+
+       * message.el (message-exchange-point-and-mark): Rework last change to
+       avoid using optional arg of exchange-point-and-mark, for backward
+       compatibility.
+
+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 6e15b4f..17fecdf 100644 (file)
@@ -7467,10 +7467,8 @@ 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)))
+  (goto-char (prog1 (mark t)
+              (set-marker (mark-marker) (point)))))
 
 (defalias 'message-make-overlay 'make-overlay)
 (defalias 'message-delete-overlay 'delete-overlay)