diff options
| author | Eli Zaretskii | 2011-10-14 15:49:32 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2011-10-14 15:49:32 +0200 |
| commit | 186f4720cca79dc4261d538abe2d30429246122b (patch) | |
| tree | 1fe0828cdd375709b832bc110b25d5431ad4ebc1 | |
| parent | 466a320edc8304632373066a61ee9f5903aa82a1 (diff) | |
| download | emacs-186f4720cca79dc4261d538abe2d30429246122b.tar.gz emacs-186f4720cca79dc4261d538abe2d30429246122b.zip | |
Improve wording in sendmail-query-once description of options.
lisp/mail/sendmail.el (sendmail-query-once): Improve the wording of
the explanation of the possible choices. Make the options passed
to completing-read shorter.
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/mail/sendmail.el | 33 |
2 files changed, 29 insertions, 10 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 68a85a43387..680383b21f3 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2011-10-14 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * mail/sendmail.el (sendmail-query-once): Improve the wording of | ||
| 4 | the explanation of the possible choices. Make the options passed | ||
| 5 | to completing-read shorter. | ||
| 6 | |||
| 1 | 2011-10-13 Agustín Martín Domingo <agustin.martin@hispalinux.es> | 7 | 2011-10-13 Agustín Martín Domingo <agustin.martin@hispalinux.es> |
| 2 | 8 | ||
| 3 | * textmodes/flyspell.el (flyspell-large-region): Make sure | 9 | * textmodes/flyspell.el (flyspell-large-region): Make sure |
diff --git a/lisp/mail/sendmail.el b/lisp/mail/sendmail.el index 4557bf0fb3f..d685b8b3e70 100644 --- a/lisp/mail/sendmail.el +++ b/lisp/mail/sendmail.el | |||
| @@ -513,21 +513,34 @@ 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 `(("My favorite mail client" . mailclient-send-it) | 516 | (let* ((options `(("Mail client" . mailclient-send-it) |
| 517 | ("Configuring Emacs's SMTP variables" . smtpmail-send-it) | ||
| 518 | ,@(when (and sendmail-program | 517 | ,@(when (and sendmail-program |
| 519 | (executable-find sendmail-program)) | 518 | (executable-find sendmail-program)) |
| 520 | '(("The system's mail transport agent" | 519 | '(("Mail transport agent" . sendmail-send-it))) |
| 521 | . sendmail-send-it))))) | 520 | ("SMTP server" . smtpmail-send-it))) |
| 522 | (choice | 521 | (choice |
| 523 | ;; Query the user. | 522 | ;; Query the user. |
| 524 | (with-temp-buffer | 523 | (with-temp-buffer |
| 525 | (rename-buffer "*Mail Help*" t) | 524 | (rename-buffer "*Emacs Mail Setup Help*" t) |
| 526 | (insert "Emacs has not been set up for sending mail.\n | 525 | (insert "\ |
| 527 | It can be told to send mail either via your favorite mail client, | 526 | Emacs is about to send an email message. However, it was not configured |
| 528 | or via the system's mail transport agent (\"sendmail\"), if any, | 527 | for sending email. You can instruct Emacs to send email in one of the |
| 529 | or it can send email on its own by configuring the SMTP parameters.\n | 528 | following ways: |
| 530 | To change your decision later, customize `send-mail-function'.\n") | 529 | |
| 530 | - Start your default mail client and pass to it the message text. | ||
| 531 | Type \"Mail client\" at the prompt below to select this option.\n\n") | ||
| 532 | (if (and sendmail-program | ||
| 533 | (executable-find sendmail-program)) | ||
| 534 | (insert "\ | ||
| 535 | - Invoke the system's mail transport agent (\"sendmail\"). | ||
| 536 | Type \"Mail transport agent\" at the prompt below to select this option.\n\n")) | ||
| 537 | (insert "\ | ||
| 538 | - Send mail directly by communicating with your mail server | ||
| 539 | (this requires setting up SMTP parameters). | ||
| 540 | Type \"SMTP server\" at the prompt below to select this option. | ||
| 541 | |||
| 542 | Emacs will record your selection and will use it thereafter. To change | ||
| 543 | your selection later, customize the option `send-mail-function'.\n") | ||
| 531 | (goto-char (point-min)) | 544 | (goto-char (point-min)) |
| 532 | (display-buffer (current-buffer)) | 545 | (display-buffer (current-buffer)) |
| 533 | (let ((completion-ignore-case t)) | 546 | (let ((completion-ignore-case t)) |