Hi,
I think the following patch will fix a problem in flyspell.el, namely
the failure to check in `flyspell-unhighlight-at' that
`flyspell-overlay' is a valid (non-nil) overlay:
--- flyspell.el Wed Dec 9 15:34:40 1998
+++ /home/tudor/flyspell.el Tue Mar 30 21:15:21 1999
@@ -1051,7 +1051,8 @@
(if (flyspell-overlay-p (car overlays))
(delete-overlay (car overlays)))
(setq overlays (cdr overlays))))
- (delete-overlay flyspell-overlay)))
+ (when (overlayp flyspell-overlay)
+ (delete-overlay flyspell-overlay))))
;*---------------------------------------------------------------------*/
;* flyspell-properties-at-p ... */
The bug can be triggered by setting flyspell-persistent-highlight to
nil in .emacs.
Regards,
Tudor