unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Kevin Ryde <user42@zip.com.au>
To: 4511@emacsbugs.donarmstrong.com
Cc: Stefan Monnier <monnier@IRO.UMontreal.CA>
Subject: bug#4511: 23.1; flyspell-mode slow editing near end of big html file
Date: Wed, 23 Sep 2009 10:56:07 +1000	[thread overview]
Message-ID: <87vdjaa388.fsf@blah.blah> (raw)
In-Reply-To: <jwvbpl2pslv.fsf-monnier+emacsbugreports@gnu.org> (Stefan Monnier's message of "Tue, 22 Sep 2009 17:40:03 -0400")

Stefan Monnier <monnier@IRO.UMontreal.CA> 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	other threads:[~2009-09-23  0:56 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <jwvhbuttg6s.fsf-monnier+emacsbugreports@gnu.org>
2009-09-21 22:24 ` bug#4511: 23.1; flyspell-mode slow editing near end of big html file Kevin Ryde
2009-09-22 21:40   ` Stefan Monnier
2009-09-23  0:56     ` Kevin Ryde [this message]
2009-09-23  3:13       ` Stefan Monnier
2009-10-16 21:57         ` Kevin Ryde
2009-10-17  2:14           ` Stefan Monnier
2009-11-07  0:21             ` Kevin Ryde
2009-11-10 22:18               ` Stefan Monnier
2009-11-17  0:22                 ` Kevin Ryde
2009-09-23 23:15   ` bug#4511: marked as done (23.1; flyspell-mode slow editing near end of big html file) Emacs bug Tracking System

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87vdjaa388.fsf@blah.blah \
    --to=user42@zip.com.au \
    --cc=4511@emacsbugs.donarmstrong.com \
    --cc=monnier@IRO.UMontreal.CA \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).