diff options
| author | Richard M. Stallman | 1996-12-07 20:36:21 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1996-12-07 20:36:21 +0000 |
| commit | 3183b23074b3ffc55b208d817b26aa3736b44f94 (patch) | |
| tree | 32f86b515e5997f1a10048830bf9555ebd53bee4 | |
| parent | 666ef0083b39a384d5b93a5a68777e962d3ae025 (diff) | |
| download | emacs-3183b23074b3ffc55b208d817b26aa3736b44f94.tar.gz emacs-3183b23074b3ffc55b208d817b26aa3736b44f94.zip | |
(sendmail-user-agent): Support 2 optional args.
(define-mail-user-agent): Doc fix.
| -rw-r--r-- | lisp/simple.el | 27 |
1 files changed, 17 insertions, 10 deletions
diff --git a/lisp/simple.el b/lisp/simple.el index bc4bee00c02..17bda77a3c5 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -2823,8 +2823,9 @@ mail-sending package you prefer. | |||
| 2823 | 2823 | ||
| 2824 | Valid values include: | 2824 | Valid values include: |
| 2825 | 2825 | ||
| 2826 | 'sendmail-user-agent -- use Emacs built-in Mail package | 2826 | sendmail-user-agent -- use the default Emacs Mail package |
| 2827 | 'mh-e-user-agent -- use the Emacs interface to the MH mail system | 2827 | mh-e-user-agent -- use the Emacs interface to the MH mail system |
| 2828 | message-user-agent -- use the GNUS mail sending package | ||
| 2828 | 2829 | ||
| 2829 | Additional valid symbols may be available; check with the author of | 2830 | Additional valid symbols may be available; check with the author of |
| 2830 | your package for details.") | 2831 | your package for details.") |
| @@ -2840,18 +2841,23 @@ properties on its property list, to encode the rest of the arguments. | |||
| 2840 | COMPOSEFUNC is program callable function that composes an outgoing | 2841 | COMPOSEFUNC is program callable function that composes an outgoing |
| 2841 | mail message buffer. This function should set up the basics of the | 2842 | mail message buffer. This function should set up the basics of the |
| 2842 | buffer without requiring user interaction. It should populate the | 2843 | buffer without requiring user interaction. It should populate the |
| 2843 | standard mail headers, leaving the `to:' and `subject:' headers blank. | 2844 | standard mail headers, leaving the `to:' and `subject:' headers blank |
| 2845 | by default. | ||
| 2844 | 2846 | ||
| 2845 | SENDFUNC is the command a user would type to send the message. | 2847 | COMPOSEFUNC should accept two optional arguments: |
| 2848 | TO and SUBJECT. TO specifies a string to insert in the `To:' field, | ||
| 2849 | and SUBJECT specifies a string to insert in the `Subject:' field. | ||
| 2846 | 2850 | ||
| 2847 | Optional ABORTFUNC is the command a user would type to abort the | 2851 | SENDFUNC is the command a user would run to send the message. |
| 2852 | |||
| 2853 | Optional ABORTFUNC is the command a user would run to abort the | ||
| 2848 | message. For mail packages that don't have a separate abort function, | 2854 | message. For mail packages that don't have a separate abort function, |
| 2849 | this can be `kill-buffer' (the equivalent of omitting this argument). | 2855 | this can be `kill-buffer' (the equivalent of omitting this argument). |
| 2850 | 2856 | ||
| 2851 | Optional HOOKVAR is a hook variable that gets run before the message | 2857 | Optional HOOKVAR is a hook variable that gets run before the message |
| 2852 | is actually sent. Reporter will install `reporter-bug-hook' onto this | 2858 | is actually sent. Callers that use the `mail-user-agent' may |
| 2853 | hook so that empty bug reports can be suppressed by raising an error. | 2859 | install a hook function temporarily on this hook variable. |
| 2854 | If not supplied, `mail-send-hook' will be used. | 2860 | If HOOKVAR is nil, `mail-send-hook' is used. |
| 2855 | 2861 | ||
| 2856 | The properties used on SYMBOL are `composefunc', `sendfunc', | 2862 | The properties used on SYMBOL are `composefunc', `sendfunc', |
| 2857 | `abortfunc', and `hookvar'." | 2863 | `abortfunc', and `hookvar'." |
| @@ -2861,8 +2867,9 @@ The properties used on SYMBOL are `composefunc', `sendfunc', | |||
| 2861 | (put symbol 'hookvar (or hookvar 'mail-send-hook))) | 2867 | (put symbol 'hookvar (or hookvar 'mail-send-hook))) |
| 2862 | 2868 | ||
| 2863 | (define-mail-user-agent 'sendmail-user-agent | 2869 | (define-mail-user-agent 'sendmail-user-agent |
| 2864 | '(lambda (&rest args) (or (apply 'mail args) | 2870 | '(lambda (&optional to subject) |
| 2865 | (error "Message aborted"))) | 2871 | (or (mail nil to subject) |
| 2872 | (error "Message aborted"))) | ||
| 2866 | 'mail-send-and-exit) | 2873 | 'mail-send-and-exit) |
| 2867 | 2874 | ||
| 2868 | (define-mail-user-agent 'mh-e-user-agent | 2875 | (define-mail-user-agent 'mh-e-user-agent |