aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Wohler2005-12-28 21:54:07 +0000
committerBill Wohler2005-12-28 21:54:07 +0000
commit0d887b77b1cb238ac32768a8897b6a79ba19e47a (patch)
treea3ff97a1d529afe88b12c510496f364b513ab624
parent97461c846c99829a6ddb85ccec45213c26fb5144 (diff)
downloademacs-0d887b77b1cb238ac32768a8897b6a79ba19e47a.tar.gz
emacs-0d887b77b1cb238ac32768a8897b6a79ba19e47a.zip
* simple.el (mh-e-user-agent): Move to mh-e/mh-comp.el and autoload.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/mh-e/ChangeLog5
-rw-r--r--lisp/mh-e/mh-comp.el16
-rw-r--r--lisp/simple.el4
4 files changed, 23 insertions, 7 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index e6310ee0098..57789ced712 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12005-12-28 Bill Wohler <wohler@newt.com>
2
3 * simple.el (mh-e-user-agent): Move to mh-e/mh-comp.el and
4 autoload.
5
12005-12-28 Stefan Monnier <monnier@iro.umontreal.ca> 62005-12-28 Stefan Monnier <monnier@iro.umontreal.ca>
2 7
3 * vc.el (vc-annotate-display): Replace optional arg `color-map' with 8 * vc.el (vc-annotate-display): Replace optional arg `color-map' with
diff --git a/lisp/mh-e/ChangeLog b/lisp/mh-e/ChangeLog
index f10b6779e9c..74fd15a2c19 100644
--- a/lisp/mh-e/ChangeLog
+++ b/lisp/mh-e/ChangeLog
@@ -1,3 +1,8 @@
12005-12-28 Bill Wohler <wohler@newt.com>
2
3 * mh-comp.el (mh-e-user-agent): Move here from simple.el. Use
4 mh-user-agent-compose instead of mh-smail-batch.
5
12005-12-27 Bill Wohler <wohler@newt.com> 62005-12-27 Bill Wohler <wohler@newt.com>
2 7
3 * mh-utils.el (mh-prompt-for-folder): Use can-create argument to 8 * mh-utils.el (mh-prompt-for-folder): Use can-create argument to
diff --git a/lisp/mh-e/mh-comp.el b/lisp/mh-e/mh-comp.el
index 898f24dccb7..113572153af 100644
--- a/lisp/mh-e/mh-comp.el
+++ b/lisp/mh-e/mh-comp.el
@@ -228,18 +228,28 @@ thus is suitable for use by programs that want to create a mail
228buffer. Users should use \\[mh-smail] to compose mail. 228buffer. Users should use \\[mh-smail] to compose mail.
229 229
230Optional arguments for setting certain fields include TO, 230Optional arguments for setting certain fields include TO,
231SUBJECT, and OTHER-HEADERS. Additional arguments are IGNORED." 231SUBJECT, and OTHER-HEADERS. Additional arguments are IGNORED.
232
233This function remains for Emacs 21 compatibility. New
234applications should use `mh-user-agent-compose'."
232 (mh-find-path) 235 (mh-find-path)
233 (let ((mh-error-if-no-draft t)) 236 (let ((mh-error-if-no-draft t))
234 (mh-send (or to "") "" (or subject "")))) 237 (mh-send (or to "") "" (or subject ""))))
235 238
236;; XEmacs needs this: 239;;;###autoload
240(define-mail-user-agent 'mh-e-user-agent
241 'mh-user-agent-compose 'mh-send-letter 'mh-fully-kill-draft
242 'mh-before-send-letter-hook)
243
237;;;###autoload 244;;;###autoload
238(defun mh-user-agent-compose (&optional to subject other-headers continue 245(defun mh-user-agent-compose (&optional to subject other-headers continue
239 switch-function yank-action 246 switch-function yank-action
240 send-actions) 247 send-actions)
241 "Set up mail composition draft with the MH mail system. 248 "Set up mail composition draft with the MH mail system.
242This is `mail-user-agent' entry point to MH-E. 249This is the `mail-user-agent' entry point to MH-E. This function
250conforms to the contract specified by `define-mail-user-agent'
251which means that this function should accept the same arguments
252as `compose-mail'.
243 253
244The optional arguments TO and SUBJECT specify recipients and the 254The optional arguments TO and SUBJECT specify recipients and the
245initial Subject field, respectively. 255initial Subject field, respectively.
diff --git a/lisp/simple.el b/lisp/simple.el
index 8df53b6664c..58e6814b845 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -4569,10 +4569,6 @@ See also `read-mail-command' concerning reading mail."
4569 (insert body)) 4569 (insert body))
4570 t))) 4570 t)))
4571 4571
4572(define-mail-user-agent 'mh-e-user-agent
4573 'mh-smail-batch 'mh-send-letter 'mh-fully-kill-draft
4574 'mh-before-send-letter-hook)
4575
4576(defun compose-mail (&optional to subject other-headers continue 4572(defun compose-mail (&optional to subject other-headers continue
4577 switch-function yank-action send-actions) 4573 switch-function yank-action send-actions)
4578 "Start composing a mail message to send. 4574 "Start composing a mail message to send.