diff options
| author | Richard M. Stallman | 1996-06-28 08:55:00 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1996-06-28 08:55:00 +0000 |
| commit | 6ec7837b2b2f21698afa7e79745e1fcaba539a92 (patch) | |
| tree | 6bd5045054964552185072ca7dcf09822c70cfd9 | |
| parent | 327c8eb2f9a636046ea354d0d7b7851354397127 (diff) | |
| download | emacs-6ec7837b2b2f21698afa7e79745e1fcaba539a92.tar.gz emacs-6ec7837b2b2f21698afa7e79745e1fcaba539a92.zip | |
(ispell-message): Support message-mode.
| -rw-r--r-- | lisp/textmodes/ispell.el | 17 |
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.") | |||
| 2093 | Don't check spelling of message headers except the Subject field. | 2097 | Don't check spelling of message headers except the Subject field. |
| 2094 | Don't check included messages. | 2098 | Don't check included messages. |
| 2095 | 2099 | ||
| 2096 | To abort spell checking of a message REGION and send the message anyway, | 2100 | To abort spell checking of a message region and send the message anyway, |
| 2097 | use the `x' or `q' command. (Any subsequent regions will be checked.) | 2101 | use the `x' command. (Any subsequent regions will be checked.) |
| 2098 | The `X' command aborts the message send so that you can edit the buffer. | 2102 | The `X' command aborts the message send so that you can edit the buffer. |
| 2099 | 2103 | ||
| 2100 | To spell-check whenever a message is sent, include the appropriate lines | 2104 | To spell-check whenever a message is sent, include the appropriate lines |
| 2101 | in your .emacs file: | 2105 | in 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. |