(ispell-message): New command, with menu bar item.
authorRichard M. Stallman <rms@gnu.org>
Mon, 20 Sep 1993 15:40:38 +0000 (15:40 +0000)
committerRichard M. Stallman <rms@gnu.org>
Mon, 20 Sep 1993 15:40:38 +0000 (15:40 +0000)
lisp/textmodes/ispell4.el

index c670aaa..9d37d0a 100644 (file)
@@ -222,6 +222,9 @@ that have not already been dumped will be lost."
 (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 @@ L lookup; Q quit\n")
       (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