aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNoam Postavsky2017-02-26 22:17:28 -0500
committerNoam Postavsky2017-03-06 23:06:29 -0500
commit66b7543eab5f500f2e7cf0cce9b260991107fc97 (patch)
tree99fdb17fd2e1ef3333e9100256880086eb73eb1d
parent37940b347052418f0589bd52b06e56fffb594ea2 (diff)
downloademacs-66b7543eab5f500f2e7cf0cce9b260991107fc97.tar.gz
emacs-66b7543eab5f500f2e7cf0cce9b260991107fc97.zip
Set default when asking for send-mail-function (Bug#25874).
* lisp/mail/sendmail.el (sendmail-query-user-about-smtp): Pass first option as default for `completing-read'.
-rw-r--r--lisp/mail/sendmail.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/mail/sendmail.el b/lisp/mail/sendmail.el
index 70c8ea1f937..42b688fbabc 100644
--- a/lisp/mail/sendmail.el
+++ b/lisp/mail/sendmail.el
@@ -555,8 +555,9 @@ This also saves the value of `send-mail-function' via Customize."
555 (goto-char (point-min)) 555 (goto-char (point-min))
556 (display-buffer (current-buffer)) 556 (display-buffer (current-buffer))
557 (let ((completion-ignore-case t)) 557 (let ((completion-ignore-case t))
558 (completing-read "Send mail via: " 558 (completing-read
559 options nil 'require-match))))) 559 (format "Send mail via (default %s): " (caar options))
560 options nil 'require-match nil nil (car options))))))
560 (customize-save-variable 'send-mail-function 561 (customize-save-variable 'send-mail-function
561 (cdr (assoc-string choice options t))))) 562 (cdr (assoc-string choice options t)))))
562 563