aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1996-06-28 08:55:00 +0000
committerRichard M. Stallman1996-06-28 08:55:00 +0000
commit6ec7837b2b2f21698afa7e79745e1fcaba539a92 (patch)
tree6bd5045054964552185072ca7dcf09822c70cfd9
parent327c8eb2f9a636046ea354d0d7b7851354397127 (diff)
downloademacs-6ec7837b2b2f21698afa7e79745e1fcaba539a92.tar.gz
emacs-6ec7837b2b2f21698afa7e79745e1fcaba539a92.zip
(ispell-message): Support message-mode.
-rw-r--r--lisp/textmodes/ispell.el17
1 files changed, 13 insertions, 4 deletions
diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el
index dfc034b0455..69190348a60 100644
--- a/lisp/textmodes/ispell.el
+++ b/lisp/textmodes/ispell.el
@@ -130,6 +130,10 @@
130;; 130;;
131;; HISTORY 131;; HISTORY
132;; 132;;
133;; Revision 2.38 1996/5/30 ethanb@phys.washington.edu
134;; Update ispell-message for gnus 5 (news-inews-hook => message-send-hook;
135;; different header for quoted message).
136;;
133;; Revision 2.37 1995/6/13 12:05:28 stevens 137;; Revision 2.37 1995/6/13 12:05:28 stevens
134;; Removed autoload from ispell-dictionary-alist. *choices* mode-line shows 138;; Removed autoload from ispell-dictionary-alist. *choices* mode-line shows
135;; misspelled word. Block skip for pgp & forwarded messages added. 139;; misspelled word. Block skip for pgp & forwarded messages added.
@@ -2093,13 +2097,13 @@ Assumed that blocks are not mutually inclusive.")
2093Don't check spelling of message headers except the Subject field. 2097Don't check spelling of message headers except the Subject field.
2094Don't check included messages. 2098Don't check included messages.
2095 2099
2096To abort spell checking of a message REGION and send the message anyway, 2100To abort spell checking of a message region and send the message anyway,
2097use the `x' or `q' command. (Any subsequent regions will be checked.) 2101use the `x' command. (Any subsequent regions will be checked.)
2098The `X' command aborts the message send so that you can edit the buffer. 2102The `X' command aborts the message send so that you can edit the buffer.
2099 2103
2100To spell-check whenever a message is sent, include the appropriate lines 2104To spell-check whenever a message is sent, include the appropriate lines
2101in your .emacs file: 2105in your .emacs file:
2102 (add-hook 'news-inews-hook 'ispell-message) 2106 (add-hook 'message-send-hook 'ispell-message)
2103 (add-hook 'mail-send-hook 'ispell-message) 2107 (add-hook 'mail-send-hook 'ispell-message)
2104 (add-hook 'mh-before-send-letter-hook 'ispell-message) 2108 (add-hook 'mh-before-send-letter-hook 'ispell-message)
2105 2109
@@ -2131,11 +2135,16 @@ You can bind this to the key C-c i in GNUS or mail by adding to
2131 ((featurep 'sc) ; sc 2.3 2135 ((featurep 'sc) ; sc 2.3
2132 (concat "\\(" sc-cite-regexp "\\)" "\\|" 2136 (concat "\\(" sc-cite-regexp "\\)" "\\|"
2133 (ispell-non-empty-string sc-reference-tag-string))) 2137 (ispell-non-empty-string sc-reference-tag-string)))
2134 ((equal major-mode 'news-reply-mode) ;GNUS 2138 ((equal major-mode 'news-reply-mode) ;GNUS 4 & below
2135 (concat "In article <" "\\|" 2139 (concat "In article <" "\\|"
2136 (if mail-yank-prefix 2140 (if mail-yank-prefix
2137 (ispell-non-empty-string mail-yank-prefix) 2141 (ispell-non-empty-string mail-yank-prefix)
2138 "^ \\|^\t"))) 2142 "^ \\|^\t")))
2143 ((equal major-mode 'message-mode) ;GNUS 5
2144 (concat ".*@.* writes:$" "\\|"
2145 (if mail-yank-prefix
2146 (ispell-non-empty-string mail-yank-prefix)
2147 "^ \\|^\t")))
2139 ((equal major-mode 'mh-letter-mode) ; mh mail message 2148 ((equal major-mode 'mh-letter-mode) ; mh mail message
2140 (ispell-non-empty-string mh-ins-buf-prefix)) 2149 (ispell-non-empty-string mh-ins-buf-prefix))
2141 ((not internal-messagep) ; Assume n sent us this message. 2150 ((not internal-messagep) ; Assume n sent us this message.