diff options
| author | Richard M. Stallman | 1994-06-25 04:30:44 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-06-25 04:30:44 +0000 |
| commit | 565101f47302842c104b840f30efbca094875107 (patch) | |
| tree | c684dc167ecc15867682cd365f9a7bd10a361d54 | |
| parent | 9f04f0237a69d7c488ca4ccbe8a96f86f8820c8d (diff) | |
| download | emacs-565101f47302842c104b840f30efbca094875107.tar.gz emacs-565101f47302842c104b840f30efbca094875107.zip | |
(ispell-message): Avoid an infinite loop.
| -rw-r--r-- | lisp/textmodes/ispell.el | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el index 68acd165bdc..268bd76bbd9 100644 --- a/lisp/textmodes/ispell.el +++ b/lisp/textmodes/ispell.el | |||
| @@ -1991,7 +1991,12 @@ you can bind this to the key C-c i in GNUS or mail by adding to | |||
| 1991 | ;; Skip across text cited from other messages. | 1991 | ;; Skip across text cited from other messages. |
| 1992 | (while (and (looking-at cite-regexp-start) | 1992 | (while (and (looking-at cite-regexp-start) |
| 1993 | (< (point) limit)) | 1993 | (< (point) limit)) |
| 1994 | (forward-line 1)) | 1994 | (let ((point1 (point))) |
| 1995 | (forward-line 1) | ||
| 1996 | ;; If there's no next line, go to the end of this one | ||
| 1997 | ;; so that the loop stops looping. | ||
| 1998 | (if (eq point1 (point)) | ||
| 1999 | (end-of-line)))) | ||
| 1995 | (if (< (point) limit) | 2000 | (if (< (point) limit) |
| 1996 | ;; Check the next batch of lines that *aren't* cited. | 2001 | ;; Check the next batch of lines that *aren't* cited. |
| 1997 | (let ((end (save-excursion | 2002 | (let ((end (save-excursion |