It should typically alter the sending method in some way or other."
(interactive "P")
(let ((buf (current-buffer))
+ (position (point-marker))
(actions message-exit-actions))
(when (and (message-send arg)
(buffer-live-p buf))
(if message-kill-buffer-on-exit
(kill-buffer buf))
(message-do-actions actions)
- t)))
+ t)
+ ;; Restore the point in the message buffer.
+ (when (buffer-live-p buf)
+ (save-window-excursion
+ (switch-to-buffer buf)
+ (set-window-point nil position)
+ (set-marker position nil)))))
(defun message-dont-send ()
"Don't send the message you have been editing.