From 2aee67ba49551d2e62d16877a7c742d3ef607186 Mon Sep 17 00:00:00 2001 From: Xinglu Chen Date: Sat, 24 Apr 2021 13:34:51 +0200 Subject: git-email: Bind unused variable to _. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This will fix the compiler warning. git-email.el:327:54: Warning: Unused lexical variable `body' * git-email.el (git-email--compose-email): rename ‘body’ to ‘_’. --- git-email.el | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/git-email.el b/git-email.el index 4dbb805..f364367 100644 --- a/git-email.el +++ b/git-email.el @@ -327,10 +327,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)) - (let ((body (or (re-search-forward - "^<#part \\(encrypt\\|sign\\)=.*mime>$" - nil t) - (re-search-forward (regexp-quote mail-header-separator) nil t)))) + (let ((_ (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))))) -- cgit v1.2.3