aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXinglu Chen <public@yoctocell.xyz>2021-01-20 09:19:43 +0100
committerXinglu Chen <public@yoctocell.xyz>2021-01-20 09:19:43 +0100
commitd42d52b685231dbd7795c6aa4ad52d8e553b8a8f (patch)
tree5cd798541da59583804d4b92372e2e006b2f049a
parent2960c7d059cda58639661109b802cc9391715c9f (diff)
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):
-rw-r--r--git-email.el1
1 files changed, 1 insertions, 0 deletions
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)