From: Kevin Ryde <user42@zip.com.au>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: 4511@emacsbugs.donarmstrong.com
Subject: bug#4511: 23.1; flyspell-mode slow editing near end of big html file
Date: Sat, 17 Oct 2009 08:57:06 +1100 [thread overview]
Message-ID: <87bpk7t32l.fsf@blah.blah> (raw)
In-Reply-To: jwveipyxsks.fsf-monnier+emacsbugreports@gnu.org
Stefan Monnier <monnier@iro.umontreal.ca> writes:
>
> 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.
Oh, well, I suppose a genuine reverse matcher could do the right thing,
probably if "<" was added to the exclusions like "<[^<>\n]*" -- not that
that helps since there isn't a reverse matcher :-).
But on the principle "why can't someone else do it", what about letting
`sgml-lexical-context' determine the context. Tested only briefly:
(defun sgml-mode-flyspell-verify ()
"Function used for `flyspell-generic-check-word-predicate' in SGML mode."
(not (memq (car (sgml-lexical-context))
'(tag pi))))
Seems fast enough for me, and I think it means CDATA text is checked,
which I think would be desirable, but I'm not well up on that stuff.
next prev parent reply other threads:[~2009-10-16 21:57 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
2009-09-23 3:13 ` Stefan Monnier
2009-10-16 21:57 ` Kevin Ryde [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87bpk7t32l.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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.