aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXinglu Chen <public@yoctocell.xyz>2021-03-15 16:37:56 +0100
committerXinglu Chen <public@yoctocell.xyz>2021-03-15 16:37:56 +0100
commit87ff26ef33258932659cdd88e95445cb2e9de528 (patch)
treef66c7597c3ecbd6d3ae67c469d3dc6a228f8ab0c
parent5efe4a452a8934e50184346381b796604e7bf34b (diff)
Revert "git-email: Remove redundant let binding."
This reverts commit 49571ab4c2ddd07db68aac300bdbc9c6bfd31b0b.
-rw-r--r--git-email.el7
1 files changed, 4 insertions, 3 deletions
diff --git a/git-email.el b/git-email.el
index 7fbce16..3db1ca3 100644
--- a/git-email.el
+++ b/git-email.el
@@ -319,9 +319,10 @@ them into the message buffer."
(seq-filter #'git-email--remove-subject used-headers))
;; Insert diff at the beginning of the body
(goto-char (point-min))
- (or (re-search-forward
- "^<#part \\(encrypt\\|sign\\)=.*mime>$" nil t)
- (re-search-forward (regexp-quote mail-header-separator) nil t)
+ (let ((body (or (re-search-forward
+ "^<#part \\(encrypt\\|sign\\)=.*mime>$"
+ nil t)
+ (re-search-forward (regexp-quote mail-header-separator) nil t))))
(save-excursion
(insert (git-email--fontify-using-faces
(git-email--fontify-diff diff)))))