]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix last change to message-exchange-point-and-mark.
authorChong Yidong <cyd@stupidchicken.com>
Sat, 2 Jan 2010 19:18:44 +0000 (14:18 -0500)
committerChong Yidong <cyd@stupidchicken.com>
Sat, 2 Jan 2010 19:18:44 +0000 (14:18 -0500)
* message.el (message-exchange-point-and-mark): Rework last change to
avoid using optional arg of exchange-point-and-mark, for backward
compatibility.

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

index dcbcb81a3710466badd7194d7dd8f632e378c5ce..c127239b1648c04558cc111732f015aea34f8723 100644 (file)
@@ -1,3 +1,9 @@
+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
index 655aa4c3e6b7e7a0d235dd3670ba656bea393908..18feee83032a1bedc08de6c5eec3e8a528b60bbc 100644 (file)
@@ -7505,7 +7505,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."
-  (exchange-point-and-mark transient-mark-mode))
+  (goto-char (prog1 (mark t)
+              (set-marker (mark-marker) (point)))))
 
 (defalias 'message-make-overlay 'make-overlay)
 (defalias 'message-delete-overlay 'delete-overlay)