Mercurial > emacs
comparison man/message.texi @ 35614:64758b6d401f
*** empty log message ***
author | Dave Love <fx@gnu.org> |
---|---|
date | Fri, 26 Jan 2001 17:33:27 +0000 |
parents | ed6683e4a5af |
children | 6caf2957c4a8 |
comparison
equal
deleted
inserted
replaced
35613:afe32e7ffa6c | 35614:64758b6d401f |
---|---|
317 | 317 |
318 @node Commands | 318 @node Commands |
319 @chapter Commands | 319 @chapter Commands |
320 | 320 |
321 @menu | 321 @menu |
322 * Buffer Entry:: Commands after entering a Message buffer. | |
322 * Header Commands:: Commands for moving to headers. | 323 * Header Commands:: Commands for moving to headers. |
323 * Movement:: Moving around in message buffers. | 324 * Movement:: Moving around in message buffers. |
324 * Insertion:: Inserting things into message buffers. | 325 * Insertion:: Inserting things into message buffers. |
325 * MIME:: @sc{mime} considerations. | 326 * MIME:: @sc{mime} considerations. |
326 * Various Commands:: Various things. | 327 * Various Commands:: Various things. |
327 * Sending:: Actually sending the message. | 328 * Sending:: Actually sending the message. |
328 * Mail Aliases:: How to use mail aliases. | 329 * Mail Aliases:: How to use mail aliases. |
330 * Spelling:: Having Emacs check your spelling. | |
329 @end menu | 331 @end menu |
332 | |
333 | |
334 @node Buffer Entry | |
335 @section Buffer Entry | |
336 @cindex undo | |
337 @kindex C-_ | |
338 | |
339 You most often end up in a Message buffer when responding to some other | |
340 message of some sort. Message does lots of handling of quoted text, and | |
341 may remove signatures, reformat the text, or the like---depending on | |
342 which used settings you're using. Message usually gets things right, | |
343 but sometimes it stumbles. To help the user unwind these stumblings, | |
344 Message sets the undo boundary before each major automatic action it | |
345 takes. If you press the undo key (usually located at @kbd{C-_}) a few | |
346 times, you will get back the un-edited message you're responding to. | |
330 | 347 |
331 | 348 |
332 @node Header Commands | 349 @node Header Commands |
333 @section Header Commands | 350 @section Header Commands |
334 | 351 |
691 | 708 |
692 No expansion will be performed upon sending of the message---all | 709 No expansion will be performed upon sending of the message---all |
693 expansions have to be done explicitly. | 710 expansions have to be done explicitly. |
694 | 711 |
695 | 712 |
713 @node Spelling | |
714 @section Spelling | |
715 @cindex spelling | |
716 @findex ispell-message | |
717 | |
718 There are two popular ways to have Emacs spell-check your messages: | |
719 @code{ispell} and @code{flyspell}. @code{ispell} is the older and | |
720 probably more popular package. You typically first write the message, | |
721 and then run the entire thing through @code{ispell} and fix all the | |
722 typos. To have this happen automatically when you send a message, put | |
723 something like the following in your @file{.emacs} file: | |
724 | |
725 @lisp | |
726 (add-hook 'message-send-hook 'ispell-message) | |
727 @end lisp | |
728 | |
729 @vindex ispell-message-dictionary-alist | |
730 If you're in the habit of writing in different languages, this can be | |
731 controlled by the @code{ispell-message-dictionary-alist} variable: | |
732 | |
733 @lisp | |
734 (setq ispell-message-dictionary-alist | |
735 '(("^Newsgroups:.*\\bde\\." . "deutsch8") | |
736 (".*" . "default"))) | |
737 @end lisp | |
738 | |
739 @code{ispell} depends on having the external @samp{ispell} command | |
740 installed. | |
741 | |
742 The other popular method is using @code{flyspell}. This package checks | |
743 your spelling while you're writing, and marks any mis-spelled words in | |
744 various ways. | |
745 | |
746 To use @code{flyspell}, put something like the following in your | |
747 @file{.emacs} file: | |
748 | |
749 @lisp | |
750 (defun my-message-setup-routine () | |
751 (flyspell-mode 1)) | |
752 (add-hook 'message-setup-hook 'my-message-setup-routine) | |
753 @end lisp | |
754 | |
755 @code{flyspell} depends on having the external @samp{ispell} command | |
756 installed. | |
757 | |
696 | 758 |
697 @node Variables | 759 @node Variables |
698 @chapter Variables | 760 @chapter Variables |
699 | 761 |
700 @menu | 762 @menu |
766 buffers. | 828 buffers. |
767 | 829 |
768 @item message-subject-re-regexp | 830 @item message-subject-re-regexp |
769 @vindex message-subject-re-regexp | 831 @vindex message-subject-re-regexp |
770 Responses to messages have subjects that start with @samp{Re: }. This | 832 Responses to messages have subjects that start with @samp{Re: }. This |
771 is @emph{not} an abbreviation of the English word ``response'', but in | 833 is @emph{not} an abbreviation of the English word ``response'', but is |
772 Latin, and means ``in response to''. Some illiterate nincompoops have | 834 Latin, and means ``in response to''. Some illiterate nincompoops have |
773 failed to grasp this fact, and have ``internationalized'' their software | 835 failed to grasp this fact, and have ``internationalized'' their software |
774 to use abonimations like @samp{Aw: } (``antwort'') or @samp{Sv: } | 836 to use abonimations like @samp{Aw: } (``antwort'') or @samp{Sv: } |
775 (``svar'') instead, which is meaningless and evil. However, you may | 837 (``svar'') instead, which is meaningless and evil. However, you may |
776 have to deal with users that use these evil tools, in which case you may | 838 have to deal with users that use these evil tools, in which case you may |
791 @table @code | 853 @table @code |
792 @item message-required-mail-headers | 854 @item message-required-mail-headers |
793 @vindex message-required-mail-headers | 855 @vindex message-required-mail-headers |
794 @xref{News Headers}, for the syntax of this variable. It is | 856 @xref{News Headers}, for the syntax of this variable. It is |
795 @code{(From Date Subject (optional . In-Reply-To) Message-ID Lines | 857 @code{(From Date Subject (optional . In-Reply-To) Message-ID Lines |
796 (optional . X-Mailer))} by default. | 858 (optional . User-Agent))} by default. |
797 | 859 |
798 @item message-ignored-mail-headers | 860 @item message-ignored-mail-headers |
799 @vindex message-ignored-mail-headers | 861 @vindex message-ignored-mail-headers |
800 Regexp of headers to be removed before mailing. The default is | 862 Regexp of headers to be removed before mailing. The default is |
801 @samp{^[GF]cc:\\|^Resent-Fcc:}. | 863 @samp{^[GF]cc:\\|^Resent-Fcc:}. |
823 Most versions of MH doesn't like being fed messages that contain the | 885 Most versions of MH doesn't like being fed messages that contain the |
824 headers in this variable. If this variable is non-@code{nil} (which is | 886 headers in this variable. If this variable is non-@code{nil} (which is |
825 the default), these headers will be removed before mailing when sending | 887 the default), these headers will be removed before mailing when sending |
826 messages via MH. Set it to @code{nil} if your MH can handle these | 888 messages via MH. Set it to @code{nil} if your MH can handle these |
827 headers. | 889 headers. |
890 | |
891 @item message-send-mail-partially-limit | |
892 @vindex message-send-mail-partially-limit | |
893 The limit on the size of messages sent as @samp{message/partial}. | |
894 This is the minimum message size in characters beyond which the | |
895 message should be sent in several parts. If it is @code{nil}, the | |
896 size is unlimited. | |
828 | 897 |
829 @end table | 898 @end table |
830 | 899 |
831 | 900 |
832 @node News Headers | 901 @node News Headers |
879 created based on the date, time, user name and system name. Message | 948 created based on the date, time, user name and system name. Message |
880 will use @code{system-name} to determine the name of the system. If | 949 will use @code{system-name} to determine the name of the system. If |
881 this isn't a fully qualified domain name (FQDN), Message will use | 950 this isn't a fully qualified domain name (FQDN), Message will use |
882 @code{mail-host-address} as the FQDN of the machine. | 951 @code{mail-host-address} as the FQDN of the machine. |
883 | 952 |
884 @item X-Newsreader | 953 @item User-Agent |
885 @cindex X-Newsreader | 954 @cindex User-Agent |
886 This optional header will be filled out according to the | 955 This optional header will be filled out according to the |
887 @code{message-newsreader} local variable. | 956 @code{message-newsreader} local variable. |
888 | |
889 @item X-Mailer | |
890 This optional header will be filled out according to the | |
891 @code{message-mailer} local variable, unless there already is an | |
892 @code{X-Newsreader} header present. | |
893 | 957 |
894 @item In-Reply-To | 958 @item In-Reply-To |
895 This optional header is filled out using the @code{Date} and @code{From} | 959 This optional header is filled out using the @code{Date} and @code{From} |
896 header of the article being replied to. | 960 header of the article being replied to. |
897 | 961 |
1101 @findex message-add-header | 1165 @findex message-add-header |
1102 | 1166 |
1103 @lisp | 1167 @lisp |
1104 (add-hook 'message-send-hook 'my-message-add-content) | 1168 (add-hook 'message-send-hook 'my-message-add-content) |
1105 (defun my-message-add-content () | 1169 (defun my-message-add-content () |
1106 (message-add-header | 1170 (message-add-header "X-In-No-Sense: Nonsense") |
1107 "X-In-No-Sense: Nonsense" | 1171 (message-add-header "X-Whatever: no")) |
1108 "X-Whatever: no")) | |
1109 @end lisp | 1172 @end lisp |
1110 | 1173 |
1111 This function won't add the header if the header is already present. | 1174 This function won't add the header if the header is already present. |
1112 | 1175 |
1113 @item message-send-mail-hook | 1176 @item message-send-mail-hook |