aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1997-09-15 19:45:16 +0000
committerRichard M. Stallman1997-09-15 19:45:16 +0000
commit1838eb6cd69542b62e8c2e8f725e4e6ba2efe041 (patch)
tree462df7e5e2751c6de3a7fa2ffd2147f86ba4afbc
parent5b341c7e2c994bebb543d6668262d2c1435eb57b (diff)
downloademacs-1838eb6cd69542b62e8c2e8f725e4e6ba2efe041.tar.gz
emacs-1838eb6cd69542b62e8c2e8f725e4e6ba2efe041.zip
Many doc fixes.
(mh-send-letter): Choose a coding system the same way sendmail-send0-it (snedmail.el) does.
-rw-r--r--lisp/mail/mh-comp.el43
1 files changed, 24 insertions, 19 deletions
diff --git a/lisp/mail/mh-comp.el b/lisp/mail/mh-comp.el
index 2989653bd7a..9345575158f 100644
--- a/lisp/mail/mh-comp.el
+++ b/lisp/mail/mh-comp.el
@@ -26,7 +26,7 @@
26 26
27;;; Change Log: 27;;; Change Log:
28 28
29;; $Id: mh-comp.el,v 1.9 1997/04/12 19:24:23 rms Exp rms $ 29;; $Id: mh-comp.el,v 1.10 1997/04/29 01:36:06 rms Exp rms $
30 30
31;;; Code: 31;;; Code:
32 32
@@ -67,7 +67,7 @@ And each hook function should leave point and mark around the citation
67text as modified. 67text as modified.
68 68
69This is a normal hook, misnamed for historical reasons. 69This is a normal hook, misnamed for historical reasons.
70It is semi-obsolete and is only used if mail-citation-hook is nil.") 70It is semi-obsolete and is only used if `mail-citation-hook' is nil.")
71 71
72(defvar mail-citation-hook nil 72(defvar mail-citation-hook nil
73 "*Hook for modifying a citation just inserted in the mail buffer. 73 "*Hook for modifying a citation just inserted in the mail buffer.
@@ -76,9 +76,9 @@ And each hook function should leave point and mark around the citation
76text as modified. 76text as modified.
77 77
78If this hook is entirely empty (nil), the text of the message is inserted 78If this hook is entirely empty (nil), the text of the message is inserted
79with mh-ins-buf-prefix prefixed to each line. 79with `mh-ins-buf-prefix' prefixed to each line.
80 80
81See also the variable mh-yank-from-start-of-msg, which controls how 81See also the variable `mh-yank-from-start-of-msg', which controls how
82much of the message passed to the hook.") 82much of the message passed to the hook.")
83 83
84;;; Copied from sendmail.el for Hyperbole 84;;; Copied from sendmail.el for Hyperbole
@@ -135,13 +135,13 @@ message and the original subject line."
135 135
136(defvar mh-comp-formfile "components" 136(defvar mh-comp-formfile "components"
137 "Name of file to be used as a skeleton for composing messages. 137 "Name of file to be used as a skeleton for composing messages.
138Default is \"components\". If not a complete path name, the file 138Default is \"components\". If not an absolute file name, the file
139is searched for first in the user's MH directory, then in the 139is searched for first in the user's MH directory, then in the
140system MH lib directory.") 140system MH lib directory.")
141 141
142(defvar mh-repl-formfile "replcomps" 142(defvar mh-repl-formfile "replcomps"
143 "Name of file to be used as a skeleton for replying to messages. 143 "Name of file to be used as a skeleton for replying to messages.
144Default is \"replcomps\". If not a complete path name, the file 144Default is \"replcomps\". If not an absolute file name, the file
145is searched for first in the user's MH directory, then in the 145is searched for first in the user's MH directory, then in the
146system MH lib directory.") 146system MH lib directory.")
147 147
@@ -251,7 +251,7 @@ See also documentation for `\\[mh-send]' function."
251 251
252(defun mh-extract-rejected-mail (msg) 252(defun mh-extract-rejected-mail (msg)
253 "Extract a letter returned by the mail system and make it resendable. 253 "Extract a letter returned by the mail system and make it resendable.
254Default is the current message. The variable mh-new-draft-cleaned-headers 254Default is the current message. The variable `mh-new-draft-cleaned-headers'
255gives the headers to clean out of the original message. 255gives the headers to clean out of the original message.
256See also documentation for `\\[mh-send]' function." 256See also documentation for `\\[mh-send]' function."
257 (interactive (list (mh-get-msg-num t))) 257 (interactive (list (mh-get-msg-num t)))
@@ -353,7 +353,7 @@ See documentation of `\\[mh-send]' for more details on composing mail."
353(defun mh-redistribute (to cc &optional msg) 353(defun mh-redistribute (to cc &optional msg)
354 "Redistribute a letter. 354 "Redistribute a letter.
355Depending on how your copy of MH was compiled, you may need to change the 355Depending on how your copy of MH was compiled, you may need to change the
356setting of the variable mh-redist-full-contents. See its documentation." 356setting of the variable `mh-redist-full-contents'. See its documentation."
357 (interactive (list (mh-read-address "Redist-To: ") 357 (interactive (list (mh-read-address "Redist-To: ")
358 (mh-read-address "Redist-Cc: ") 358 (mh-read-address "Redist-Cc: ")
359 (mh-get-msg-num t))) 359 (mh-get-msg-num t)))
@@ -395,7 +395,7 @@ setting of the variable mh-redist-full-contents. See its documentation."
395(defun mh-reply (message &optional includep) 395(defun mh-reply (message &optional includep)
396 "Reply to MESSAGE (default: current message). 396 "Reply to MESSAGE (default: current message).
397If optional prefix argument INCLUDEP provided, then include the message 397If optional prefix argument INCLUDEP provided, then include the message
398in the reply using filter mhl.reply in your MH directory. 398in the reply using filter `mhl.reply' in your MH directory.
399Prompts for type of addresses to reply to: 399Prompts for type of addresses to reply to:
400 from sender only, 400 from sender only,
401 to sender and primary recipients, 401 to sender and primary recipients,
@@ -453,7 +453,7 @@ Do not call this function from outside mh-e; use \\[mh-smail] instead.
453 453
454The letter is composed in mh-letter-mode; see its documentation for more 454The letter is composed in mh-letter-mode; see its documentation for more
455details. If `mh-compose-letter-function' is defined, it is called on the 455details. If `mh-compose-letter-function' is defined, it is called on the
456draft and passed three arguments: to, subject, and cc." 456draft and passed three arguments: TO, SUBJECT, and CC."
457 (interactive (list 457 (interactive (list
458 (mh-read-address "To: ") 458 (mh-read-address "To: ")
459 (mh-read-address "Cc: ") 459 (mh-read-address "Cc: ")
@@ -695,8 +695,7 @@ Variables controlling this mode (defaults in parentheses):
695 mh-signature-file-name (\"~/.signature\") 695 mh-signature-file-name (\"~/.signature\")
696 File to be inserted into message by \\[mh-insert-signature]. 696 File to be inserted into message by \\[mh-insert-signature].
697 697
698Upon invoking mh-letter-mode, text-mode-hook and mh-letter-mode-hook are 698This command runs the normal hooks `text-mode-hook' and `mh-letter-mode-hook'."
699invoked with no args, if those values are non-nil."
700 699
701 (interactive) 700 (interactive)
702 (or mh-user-path (mh-find-path)) 701 (or mh-user-path (mh-find-path))
@@ -749,7 +748,7 @@ invoked with no args, if those values are non-nil."
749(defun mh-to-field () 748(defun mh-to-field ()
750 "Move point to the end of a specified header field. 749 "Move point to the end of a specified header field.
751The field is indicated by the previous keystroke (the last keystroke 750The field is indicated by the previous keystroke (the last keystroke
752of the command) according to the list in the variable mh-to-field-choices. 751of the command) according to the list in the variable `mh-to-field-choices'.
753Create the field if it does not exist. Set the mark to point before moving." 752Create the field if it does not exist. Set the mark to point before moving."
754 (interactive) 753 (interactive)
755 (expand-abbrev) 754 (expand-abbrev)
@@ -799,7 +798,7 @@ Prompt for the field name with a completion list of the current folders."
799 798
800 799
801(defun mh-insert-signature () 800(defun mh-insert-signature ()
802 "Insert the file named by mh-signature-file-name at the current point." 801 "Insert the file named by `mh-signature-file-name' at point."
803 (interactive) 802 (interactive)
804 (insert-file-contents mh-signature-file-name) 803 (insert-file-contents mh-signature-file-name)
805 (force-mode-line-update)) 804 (force-mode-line-update))
@@ -860,14 +859,20 @@ Prompt for the field name with a completion list of the current folders."
860(defun mh-send-letter (&optional arg) 859(defun mh-send-letter (&optional arg)
861 "Send the draft letter in the current buffer. 860 "Send the draft letter in the current buffer.
862If optional prefix argument is provided, monitor delivery. 861If optional prefix argument is provided, monitor delivery.
863Run mh-before-send-letter-hook before doing anything." 862Run `mh-before-send-letter-hook' before actually doing anything."
864 (interactive "P") 863 (interactive "P")
865 (run-hooks 'mh-before-send-letter-hook) 864 (run-hooks 'mh-before-send-letter-hook)
866 (save-buffer) 865 (save-buffer)
867 (message "Sending...") 866 (message "Sending...")
868 (let ((draft-buffer (current-buffer)) 867 (let ((draft-buffer (current-buffer))
869 (file-name buffer-file-name) 868 (file-name buffer-file-name)
870 (config mh-previous-window-config)) 869 (config mh-previous-window-config)
870 (coding-system-for-write
871 (if (local-variable-p 'buffer-file-coding-system)
872 buffer-file-coding-system
873 (or sendmail-coding-system
874 default-buffer-file-coding-system
875 'iso-latin-1))))
871 (cond (arg 876 (cond (arg
872 (pop-to-buffer "MH mail delivery") 877 (pop-to-buffer "MH mail delivery")
873 (erase-buffer) 878 (erase-buffer)
@@ -900,8 +905,8 @@ Run mh-before-send-letter-hook before doing anything."
900 905
901(defun mh-insert-letter (folder message verbatim) 906(defun mh-insert-letter (folder message verbatim)
902 "Insert a message into the current letter. 907 "Insert a message into the current letter.
903Removes the message's headers using mh-invisible-headers. Prefixes 908Removes the message's headers using `mh-invisible-headers'. Prefixes
904each non-blank line with mh-ins-buf-prefix. Prompts for FOLDER and 909each non-blank line with `mh-ins-buf-prefix'. Prompts for FOLDER and
905MESSAGE. If prefix argument VERBATIM provided, do not indent and do 910MESSAGE. If prefix argument VERBATIM provided, do not indent and do
906not delete headers. Leaves the mark before the letter and point after it." 911not delete headers. Leaves the mark before the letter and point after it."
907 (interactive 912 (interactive
@@ -1064,7 +1069,7 @@ using directives already inserted in the draft, fills in
1064all the MIME components and header fields. 1069all the MIME components and header fields.
1065This step should be done last just before sending the message. 1070This step should be done last just before sending the message.
1066The mhn program is part of MH version 6.8 or later. 1071The mhn program is part of MH version 6.8 or later.
1067The `\\[mh-revert-mhn-edit]' command undoes this command. 1072The \\[mh-revert-mhn-edit] command undoes this command.
1068For assistance with creating mhn directives to insert 1073For assistance with creating mhn directives to insert
1069various types of components in a message, see 1074various types of components in a message, see
1070\\[mh-mhn-compose-insertion] (generic insertion from a file), 1075\\[mh-mhn-compose-insertion] (generic insertion from a file),