2005-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
+ * textmodes/flyspell.el (flyspell-delete-region-overlays): Use
+ remove-overlays.
+
* calendar/diary-lib.el (diary-list-entries): Also hide the
terminating newline.
;*---------------------------------------------------------------------*/
(defun flyspell-delete-region-overlays (beg end)
"Delete overlays used by flyspell in a given region."
- (let ((l (overlays-in beg end)))
- (while (consp l)
- (progn
- (if (flyspell-overlay-p (car l))
- (delete-overlay (car l)))
- (setq l (cdr l))))))
+ (remove-overlays beg end 'flyspell-overlay t))
(defun flyspell-delete-all-overlays ()