aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/mail/sendmail.el44
2 files changed, 30 insertions, 19 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 7f4462179ec..63f199304a6 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12011-10-15 Chong Yidong <cyd@stupidchicken.com>
2
3 * mail/sendmail.el (sendmail-query-once): Tweak prompt message,
4 putting the input text in front and in bold.
5
12011-10-14 Stefan Monnier <monnier@iro.umontreal.ca> 62011-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
2 7
3 * pcmpl-unix.el (pcomplete/ssh): SSH does allow ganging. 8 * pcmpl-unix.el (pcomplete/ssh): SSH does allow ganging.
diff --git a/lisp/mail/sendmail.el b/lisp/mail/sendmail.el
index d685b8b3e70..6044392d4e0 100644
--- a/lisp/mail/sendmail.el
+++ b/lisp/mail/sendmail.el
@@ -513,34 +513,40 @@ This also saves the value of `send-mail-function' via Customize."
513 ;; a second time, probably because someone's using an old value 513 ;; a second time, probably because someone's using an old value
514 ;; of send-mail-function. 514 ;; of send-mail-function.
515 (when (eq send-mail-function 'sendmail-query-once) 515 (when (eq send-mail-function 'sendmail-query-once)
516 (let* ((options `(("Mail client" . mailclient-send-it) 516 (let* ((options `(("mail client" . mailclient-send-it)
517 ,@(when (and sendmail-program 517 ,@(when (and sendmail-program
518 (executable-find sendmail-program)) 518 (executable-find sendmail-program))
519 '(("Mail transport agent" . sendmail-send-it))) 519 '(("transport" . sendmail-send-it)))
520 ("SMTP server" . smtpmail-send-it))) 520 ("smtp" . smtpmail-send-it)))
521 (choice 521 (choice
522 ;; Query the user. 522 ;; Query the user.
523 (with-temp-buffer 523 (with-temp-buffer
524 (rename-buffer "*Emacs Mail Setup Help*" t) 524 (rename-buffer "*Emacs Mail Setup Help*" t)
525 (insert "\ 525 (insert "\
526 Emacs is about to send an email message. However, it was not configured 526 Emacs is about to send an email message, but it has not been
527 for sending email. You can instruct Emacs to send email in one of the 527 configured for sending email. To tell Emacs how to send email:
528 following ways: 528
529 529 - Type `"
530 - Start your default mail client and pass to it the message text. 530 (propertize "mail client" 'face 'bold)
531 Type \"Mail client\" at the prompt below to select this option.\n\n") 531 "' to start your default email client and
532 (if (and sendmail-program 532 pass it the message text.\n\n")
533 (executable-find sendmail-program)) 533 (and sendmail-program
534 (insert "\ 534 (executable-find sendmail-program)
535 - Invoke the system's mail transport agent (\"sendmail\"). 535 (insert "\
536 Type \"Mail transport agent\" at the prompt below to select this option.\n\n")) 536 - Type `"
537 (propertize "transport" 'face 'bold)
538 "' to invoke the system's mail transport agent
539 (the `"
540 sendmail-program
541 "' program).\n\n"))
537 (insert "\ 542 (insert "\
538 - Send mail directly by communicating with your mail server 543 - Type `"
539 (this requires setting up SMTP parameters). 544 (propertize "smtp" 'face 'bold)
540 Type \"SMTP server\" at the prompt below to select this option. 545 "' to send mail directly to an \"outgoing mail\" server.
546 (Emacs may prompt you for SMTP settings).
541 547
542 Emacs will record your selection and will use it thereafter. To change 548 Emacs will record your selection and will use it thereafter.
543 your selection later, customize the option `send-mail-function'.\n") 549 To change it later, customize the option `send-mail-function'.\n")
544 (goto-char (point-min)) 550 (goto-char (point-min))
545 (display-buffer (current-buffer)) 551 (display-buffer (current-buffer))
546 (let ((completion-ignore-case t)) 552 (let ((completion-ignore-case t))