mu4e: try to honor `message-cite-reply-position'

Try to respect gnu's `message-cite-reply-position' by placing the cursor
in the right position.
This commit is contained in:
djcb 2017-01-22 22:11:30 +02:00
parent 4859cb802f
commit 1c4caf198d
1 changed files with 8 additions and 1 deletions

View File

@ -579,7 +579,14 @@ tempfile)."
(if (member compose-type '(new forward))
(message-goto-to)
(message-goto-body))
;; otherwise, it depends...
(case message-cite-reply-position
(above
(message-goto-body))
(t
(when (message-goto-signature)
(forward-line -2)))))
;; bind to `mu4e-compose-parent-message' of compose buffer
(set (make-local-variable 'mu4e-compose-parent-message) original-msg)
(put 'mu4e-compose-parent-message 'permanent-local t)