# HG changeset patch # User Richard M. Stallman # Date 748539638 0 # Node ID fe223c0faf710386132fc94996f89442ecf9a3b2 # Parent a56afa1b45c1b34511e7062cdf34a04ca2b82fa6 (ispell-message): New command, with menu bar item. diff -r a56afa1b45c1 -r fe223c0faf71 lisp/textmodes/=ispell4.el --- 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