Subject: Re: bug#4511: 23.1; flyspell-mode slow editing near end of big html file

From: Stefan Monnier <[email-masked]>
Date: Tue, 22 Sep 2009 23:13:32 -0400

>> You need to pass it a `limit' argument.
> I thought about that a bit.  The limit would be the immediately
> preceding "<", ">", or "\n", since whichever of them is hit first
> answers whether you're in a tag or not.

(line-beginning-position) will do fine.

> There'd be no need for a separate limit calculation if a regexp could be
> cooked up to stop on the first of those three.

The given regexp is actually plenty, in this respect.  It's just that
looking-back is a dog and doesn't make good use of the regexp.

        Stefan