changeset 4749:fe223c0faf71

(ispell-message): New command, with menu bar item.
author Richard M. Stallman <rms@gnu.org>
date Mon, 20 Sep 1993 15:40:38 +0000
parents a56afa1b45c1
children cdefe4f21650
files lisp/textmodes/=ispell4.el
diffstat 1 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/textmodes/=ispell4.el	Mon Sep 20 13:49:26 1993 +0000
+++ b/lisp/textmodes/=ispell4.el	Mon Sep 20 15:40:38 1993 +0000
@@ -222,6 +222,9 @@
 (define-key ispell-menu-map [ispell-next]
   '("Continue Check" . ispell-next))
 
+(define-key ispell-menu-map [ispell-message]
+  '("Check Message" . ispell-message))
+
 (define-key ispell-menu-map [ispell-region]
   '("Check Region" . ispell-region))
 
@@ -604,6 +607,14 @@
       (kill-emacs 1))
   (write-region (point-min) (point-max) "ispell.info"))
 
+(defun ispell-message ()
+  "Check the spelling for an outgoing mail message."
+  (interactive)
+  (save-excursion
+    (beginning-of-buffer)
+    (search-forward mail-header-separator nil t)
+    (ispell (current-buffer) (point))))
+
 (provide 'ispell)
 
 ;;; ispell.el ends here