On Fri, 2002-12-13 at 19:53, Vladimir V. Kisil wrote:
XEmacs 21.4.10 from the Debian unstable distribution repeatedly
crashes
when enters a flyspell mode. The problem seems to disappear after I
install the recent flyspell.el version from the
http://www-sop.inria.fr/mimosa/personnel/Manuel.Serrano/flyspell/flyspell...
I can't reproduce this with 21.4.11rc1 on RedHat 8.0.
See below for the diff between our and the upstream versions of
flyspell.el. Also, the upstream version goes into infinite loop for me
if doing a flyspell-region to a large region containing non-ascii chars,
eg. the text-modes ChangeLog [already reported to the author], while the
version in our CVS is not affected.
--- flyspell.el 2002-12-15 15:45:52.000000000 +0200
+++ flyspell.el.upstream 2002-12-15 15:36:24.000000000 +0200
@@ -1362,11 +1362,17 @@
(message "Spell Checking...%d%% [%s]"
(* 100 (/ (float (- (point) start)) size))
word))
- (if (search-forward word flyspell-large-region-end t)
- (progn
- (setq flyspell-large-region-beg (point))
- (goto-char (- (point) 1))
- (flyspell-word)))
+ (let ((l t))
+ (while l
+ (if (search-forward (regexp-quote word)
+ flyspell-large-region-end t)
+ (progn
+ (setq flyspell-large-region-beg (point))
+ (if (string= word (car (flyspell-get-word nil)))
+ (progn
+ (setq l nil)
+ (flyspell-highlight-incorrect-region
+ (- (point) (length word)) (point) nil)))))))
(set-buffer buffer))
(goto-char (point-max)))))
;; we are done
--
\/ille Skyttä
scop at
xemacs.org