bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Kevin Ryde
Subject: bug#4511: 23.1; flyspell-mode slow editing near end of big html file
Date: Wed, 23 Sep 2009 10:56:07 +1000
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux)

Stefan Monnier <address@hidden> writes:
>
> 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.

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.  I suppose it'd be along
the lines of (untested) ...

     (and (looking-back "\\([<>\n]\\)[^<>\n]*?")
          (equal "<" (match-string 1)))

but `skip-chars-backward' seems clearer to me, and might be a couple of
nanoseconds quicker too in fact.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]