diff options
| author | Noam Postavsky <npostavs@gmail.com> | 2017-02-26 22:17:28 -0500 | 
|---|---|---|
| committer | Noam Postavsky <npostavs@gmail.com> | 2017-03-06 23:06:29 -0500 | 
| commit | 66b7543eab5f500f2e7cf0cce9b260991107fc97 (patch) | |
| tree | 99fdb17fd2e1ef3333e9100256880086eb73eb1d | |
| parent | 37940b347052418f0589bd52b06e56fffb594ea2 (diff) | |
| download | emacs-66b7543eab5f500f2e7cf0cce9b260991107fc97.tar.gz | |
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.el | 5 | 
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."  	    (goto-char (point-min))  	    (display-buffer (current-buffer))  	    (let ((completion-ignore-case t)) -	      (completing-read "Send mail via: " -			       options nil 'require-match))))) +              (completing-read +               (format "Send mail via (default %s): " (caar options)) +               options nil 'require-match nil nil (car options))))))      (customize-save-variable 'send-mail-function  			     (cdr (assoc-string choice options t))))) | 
