From d42d52b685231dbd7795c6aa4ad52d8e553b8a8f Mon Sep 17 00:00:00 2001 From: Xinglu Chen Date: Wed, 20 Jan 2021 09:19:43 +0100 Subject: git-email: Make sure point is at BOF Put the point at the beginning of the file before doing a search for the message body. * git-email.el (git-email--compose-email): --- git-email.el | 1 + 1 file changed, 1 insertion(+) (limited to 'git-email.el') diff --git a/git-email.el b/git-email.el index f16798e..ef67968 100644 --- a/git-email.el +++ b/git-email.el @@ -251,6 +251,7 @@ them into the message buffer." (cadr (assoc 'subject used-headers)) (seq-filter #'git-email--remove-subject used-headers)) ;; Insert diff at the beginning of the body + (goto-char (point-min)) (let ((body (or (re-search-forward "<#part \\(encrypt\\|sign\\)=.*mime>" nil t) -- cgit v1.2.3