diff options
| -rw-r--r-- | lisp/textmodes/ispell4.el | 15 |
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 | ||