From 1c4caf198d8c594d7e61e3ed5dcf5904117549bc Mon Sep 17 00:00:00 2001 From: djcb Date: Sun, 22 Jan 2017 22:11:30 +0200 Subject: [PATCH] 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. --- mu4e/mu4e-compose.el | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/mu4e/mu4e-compose.el b/mu4e/mu4e-compose.el index 3c200b0e..9e9497ff 100644 --- a/mu4e/mu4e-compose.el +++ b/mu4e/mu4e-compose.el @@ -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)