aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1996-12-07 20:36:21 +0000
committerRichard M. Stallman1996-12-07 20:36:21 +0000
commit3183b23074b3ffc55b208d817b26aa3736b44f94 (patch)
tree32f86b515e5997f1a10048830bf9555ebd53bee4
parent666ef0083b39a384d5b93a5a68777e962d3ae025 (diff)
downloademacs-3183b23074b3ffc55b208d817b26aa3736b44f94.tar.gz
emacs-3183b23074b3ffc55b208d817b26aa3736b44f94.zip
(sendmail-user-agent): Support 2 optional args.
(define-mail-user-agent): Doc fix.
-rw-r--r--lisp/simple.el27
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
2824Valid values include: 2824Valid 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
2829Additional valid symbols may be available; check with the author of 2830Additional valid symbols may be available; check with the author of
2830your package for details.") 2831your package for details.")
@@ -2840,18 +2841,23 @@ properties on its property list, to encode the rest of the arguments.
2840COMPOSEFUNC is program callable function that composes an outgoing 2841COMPOSEFUNC is program callable function that composes an outgoing
2841mail message buffer. This function should set up the basics of the 2842mail message buffer. This function should set up the basics of the
2842buffer without requiring user interaction. It should populate the 2843buffer without requiring user interaction. It should populate the
2843standard mail headers, leaving the `to:' and `subject:' headers blank. 2844standard mail headers, leaving the `to:' and `subject:' headers blank
2845by default.
2844 2846
2845SENDFUNC is the command a user would type to send the message. 2847COMPOSEFUNC should accept two optional arguments:
2848TO and SUBJECT. TO specifies a string to insert in the `To:' field,
2849and SUBJECT specifies a string to insert in the `Subject:' field.
2846 2850
2847Optional ABORTFUNC is the command a user would type to abort the 2851SENDFUNC is the command a user would run to send the message.
2852
2853Optional ABORTFUNC is the command a user would run to abort the
2848message. For mail packages that don't have a separate abort function, 2854message. For mail packages that don't have a separate abort function,
2849this can be `kill-buffer' (the equivalent of omitting this argument). 2855this can be `kill-buffer' (the equivalent of omitting this argument).
2850 2856
2851Optional HOOKVAR is a hook variable that gets run before the message 2857Optional HOOKVAR is a hook variable that gets run before the message
2852is actually sent. Reporter will install `reporter-bug-hook' onto this 2858is actually sent. Callers that use the `mail-user-agent' may
2853hook so that empty bug reports can be suppressed by raising an error. 2859install a hook function temporarily on this hook variable.
2854If not supplied, `mail-send-hook' will be used. 2860If HOOKVAR is nil, `mail-send-hook' is used.
2855 2861
2856The properties used on SYMBOL are `composefunc', `sendfunc', 2862The 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