aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1994-04-03 06:04:35 +0000
committerRichard M. Stallman1994-04-03 06:04:35 +0000
commitae9fdfe5e1035d5c914d465e4b3fb380d959f3f8 (patch)
tree24d037bcbec1e0dc18ec580ab206b4699d0a005c
parent2e8907d3976eab6cd7eff620c050e39503171ffc (diff)
downloademacs-ae9fdfe5e1035d5c914d465e4b3fb380d959f3f8.tar.gz
emacs-ae9fdfe5e1035d5c914d465e4b3fb380d959f3f8.zip
(ispell-message): Fixed infinite loop on shortened msg.
-rw-r--r--lisp/textmodes/ispell.el7
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el
index 1050b494dc8..444555c5e47 100644
--- a/lisp/textmodes/ispell.el
+++ b/lisp/textmodes/ispell.el
@@ -1756,14 +1756,14 @@ news-reply-mode-hook or mail-mode-hook to the following lambda expression:
1756 (beginning-of-buffer) 1756 (beginning-of-buffer)
1757 (let* ((internal-messagep 1757 (let* ((internal-messagep
1758 (search-forward mail-header-separator nil t)) 1758 (search-forward mail-header-separator nil t))
1759 (limit 1759 (limit (copy-marker
1760 (cond 1760 (cond
1761 ((not ispell-message-text-end) (point-max)) 1761 ((not ispell-message-text-end) (point-max))
1762 ((char-or-string-p ispell-message-text-end) 1762 ((char-or-string-p ispell-message-text-end)
1763 (if (re-search-forward ispell-message-text-end nil t) 1763 (if (re-search-forward ispell-message-text-end nil t)
1764 (match-beginning 0) 1764 (match-beginning 0)
1765 (point-max))) 1765 (point-max)))
1766 (t (min (point-max) (funcall ispell-message-text-end))))) 1766 (t (min (point-max) (funcall ispell-message-text-end))))))
1767 (cite-regexp ;Prefix of inserted text 1767 (cite-regexp ;Prefix of inserted text
1768 (cond 1768 (cond
1769 ((featurep 'supercite) ; sc 3.0 1769 ((featurep 'supercite) ; sc 3.0
@@ -1833,7 +1833,8 @@ news-reply-mode-hook or mail-mode-hook to the following lambda expression:
1833 (match-beginning 0) 1833 (match-beginning 0)
1834 limit)))) 1834 limit))))
1835 (ispell-region (point) end) 1835 (ispell-region (point) end)
1836 (goto-char end)))))))) 1836 (goto-char end)))))
1837 (set-marker limit nil))))
1837 1838
1838(defun ispell-non-empty-string (string) 1839(defun ispell-non-empty-string (string)
1839 (if (or (not string) (string-equal string "")) 1840 (if (or (not string) (string-equal string ""))