+2004-03-26 Katsumi Yamaoka <yamaoka@jpl.org>
+
+ * message.el (message-exchange-point-and-mark): Don't activate
+ region if it was inactive. Suggested by Hiroshi Fujishima
+ <pooh@nature.tsukuba.ac.jp>.
+
2004-03-25 Katsumi Yamaoka <yamaoka@jpl.org>
* gnus-art.el (article-display-face): Display Faces in the same
(if (eq (char-after) (char-after (- (point) 2)))
(delete-char -2))))))
-(defalias 'message-exchange-point-and-mark 'exchange-point-and-mark)
+(defun message-exchange-point-and-mark ()
+ "Exchange point and mark, but don't activate region if it was inactive."
+ (unless (prog1
+ (symbol-value 'mark-active)
+ (exchange-point-and-mark))
+ (setq mark-active nil)))
+
(defalias 'message-make-overlay 'make-overlay)
(defalias 'message-delete-overlay 'delete-overlay)
(defalias 'message-overlay-put 'overlay-put)