From 67722ab62f9cd0ce81efd628d5a87b8ef350aacc Mon Sep 17 00:00:00 2001 From: Richard Stallman Date: Tue, 11 May 2021 22:59:12 -0400 Subject: [PATCH] Avoid querying in a noninteractive Emacs. * lisp/mail/sendmail.el (mail-send): In noninteractive Emacs, don't ask about combining header fields. --- lisp/mail/sendmail.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lisp/mail/sendmail.el b/lisp/mail/sendmail.el index c9596344ccc..fee11c06aa7 100644 --- a/lisp/mail/sendmail.el +++ b/lisp/mail/sendmail.el @@ -896,8 +896,9 @@ the user from the mailer." (concat "\\(?:[[:space:];,]\\|\\`\\)" (regexp-opt mail-mailing-lists t) "\\(?:[[:space:];,]\\|\\'\\)")))) - (mail-combine-fields "To") - (mail-combine-fields "Cc") + (unless noninteractive + (mail-combine-fields "To") + (mail-combine-fields "Cc")) ;; If there are mailing lists defined (when ml (save-excursion -- 2.39.5