home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cis.ohio-state.edu!pacific.mps.ohio-state.edu!linac!uwm.edu!ogicse!orstcs!orstnews!talon.ucs.orst.edu!palmerp
- From: palmerp@math.orst.edu (Paul A Palmer)
- Newsgroups: gnu.emacs.help
- Subject: Re: ispell interface
- Message-ID: <PALMERP.92Jul27151734@phoebus.math.orst.edu>
- Date: 27 Jul 92 23:17:34 GMT
- Article-I.D.: phoebus.PALMERP.92Jul27151734
- References: <CAH.92Jul27154436@peter.bham.ac.uk>
- Sender: usenet@talon.ucs.orst.edu (Usenet News admin)
- Reply-To: palmerp@math.orst.edu
- Organization: Dept. of Math, Oregon State University
- Lines: 41
- In-Reply-To: cah@cs.bham.ac.uk's message of 27 Jul 92 15:44:36 GMT
- Nntp-Posting-Host: phoebus.math.orst.edu
-
- In article <CAH.92Jul27154436@peter.bham.ac.uk> cah@cs.bham.ac.uk (Ceri Hopkins) writes:
-
- Has anyone updated ispell.el so that it can be used on mail composed
- in Emacs, i.e. ignore headers etc.. Does this already work for some
- mail readers? I am using mh-e -- however that shouldn't be much of a
- problem.
-
- Well, I didn't update ispell.el, but I do have one solution. I use mh-e, and
- my solution is specific to that. Here are the lines from my .emacs:
-
- (defun mh-find-body () "Return location of start of body."
- (save-excursion
- (goto-char (point-min))
- (mh-goto-header-end 1)
- (point)))
- (defun mh-ispell-letter ()
- "Run ispell on the body of an mh letter, skipping quoted material beginning
- with >>"
- (interactive)
- (setq comment-start ">>")
- (setq comment-start-skip "^>+ *")
- (ispell-region (mh-find-body) (point-max)))
- (define-key mh-letter-mode-map "\C-ci" 'mh-ispell-letter)
-
- If anyone improves on this, please send me the improved version. I'm a pretty
- novice elisp hacker.
-
- Not only does my version (to work with ispell version 3) attempt to
- correct the spelling of the header it tends to take the first few
- characters of the first mail address and move it to after the first
- paragraph! I've had trouble with it trying to correct errors in the
- first line of files too (similar behaviour to the above, screwing up
- the file).
-
- I've never seen this behaviour.
-
- --
- Paul Palmer
- Department of Mathematics E-mail: palmerp@math.orst.edu
- Kidder Hall 368
- Oregon State University, Corvallis, Oregon 97331-4605
-