aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorRichard M. Stallman1993-09-24 20:02:03 +0000
committerRichard M. Stallman1993-09-24 20:02:03 +0000
commit3ba7a8dacadd8160cb1a2bb994a9efe90d40ccc8 (patch)
tree62b69860598c3d262acd399439d21925d7bf099f /lisp
parent7a5e0891528c6563ae3f500858b5a46add9daeb5 (diff)
downloademacs-3ba7a8dacadd8160cb1a2bb994a9efe90d40ccc8.tar.gz
emacs-3ba7a8dacadd8160cb1a2bb994a9efe90d40ccc8.zip
(ispell-message): Handle cited messages.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/textmodes/ispell4.el15
1 files changed, 14 insertions, 1 deletions
diff --git a/lisp/textmodes/ispell4.el b/lisp/textmodes/ispell4.el
index 9d37d0a1246..7ffbb8caf28 100644
--- a/lisp/textmodes/ispell4.el
+++ b/lisp/textmodes/ispell4.el
@@ -612,8 +612,21 @@ L lookup; Q quit\n")
612 (interactive) 612 (interactive)
613 (save-excursion 613 (save-excursion
614 (beginning-of-buffer) 614 (beginning-of-buffer)
615 ;; Don't spell-check the headers.
615 (search-forward mail-header-separator nil t) 616 (search-forward mail-header-separator nil t)
616 (ispell (current-buffer) (point)))) 617 (while (not (eobp))
618 ;; Skip across text cited from other messages.
619 (while (and (looking-at (concat "^[ \t]*$\\|"
620 ispell-message-cite-regexp))
621 (not (eobp)))
622 (forward-line 1))
623 (if (not (eobp))
624 ;; Fill the next batch of lines that *aren't* cited.
625 (let ((start (point)))
626 (re-search-forward
627 (concat "^\\(" ispell-message-cite-regexp "\\)") nil 'end)
628 (beginning-of-line)
629 (save-excursion (ispell-region (- start 1) (point))))))))
617 630
618(provide 'ispell) 631(provide 'ispell)
619 632