From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Ryde Newsgroups: gmane.emacs.bugs Subject: bug#4511: 23.1; flyspell-mode slow editing near end of big html file Date: Sat, 17 Oct 2009 08:57:06 +1100 Message-ID: <87bpk7t32l.fsf@blah.blah> References: <87ws3sgcm1.fsf@blah.blah> <87vdjaa388.fsf@blah.blah> Reply-To: Kevin Ryde , 4511@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1255730858 12421 80.91.229.12 (16 Oct 2009 22:07:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 16 Oct 2009 22:07:38 +0000 (UTC) Cc: 4511@emacsbugs.donarmstrong.com To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Oct 17 00:07:27 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MyuxJ-0003Ai-8r for geb-bug-gnu-emacs@m.gmane.org; Sat, 17 Oct 2009 00:07:25 +0200 Original-Received: from localhost ([127.0.0.1]:55612 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MyuxI-00087F-L5 for geb-bug-gnu-emacs@m.gmane.org; Fri, 16 Oct 2009 18:07:24 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MyuxD-00086l-EF for bug-gnu-emacs@gnu.org; Fri, 16 Oct 2009 18:07:19 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Myux8-000861-P4 for bug-gnu-emacs@gnu.org; Fri, 16 Oct 2009 18:07:18 -0400 Original-Received: from [199.232.76.173] (port=59887 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Myux8-00085t-Iy for bug-gnu-emacs@gnu.org; Fri, 16 Oct 2009 18:07:14 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:50225) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Myux8-00057z-2O for bug-gnu-emacs@gnu.org; Fri, 16 Oct 2009 18:07:14 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n9GM7BLb018836; Fri, 16 Oct 2009 15:07:11 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n9GM56EQ018026; Fri, 16 Oct 2009 15:05:06 -0700 Resent-Date: Fri, 16 Oct 2009 15:05:06 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Kevin Ryde Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Fri, 16 Oct 2009 22:05:06 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 4511 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 4511-submit@emacsbugs.donarmstrong.com id=B4511.125573029116830 (code B ref 4511); Fri, 16 Oct 2009 22:05:06 +0000 Original-Received: (at 4511) by emacsbugs.donarmstrong.com; 16 Oct 2009 21:58:11 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mailout2.pacific.net.au (mailout2-5.pacific.net.au [61.8.2.228]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n9GLw9mS016827 for <4511@emacsbugs.donarmstrong.com>; Fri, 16 Oct 2009 14:58:11 -0700 Original-Received: from mailproxy2.pacific.net.au (mailproxy2.pacific.net.au [61.8.2.163]) by mailout2.pacific.net.au (Postfix) with ESMTP id C6C0D1913EB; Sat, 17 Oct 2009 08:58:06 +1100 (EST) Original-Received: from blah.blah (ppp2874.dyn.pacific.net.au [61.8.40.116]) by mailproxy2.pacific.net.au (Postfix) with ESMTP id 1B62527407; Sat, 17 Oct 2009 08:58:00 +1100 (EST) Original-Received: from gg by blah.blah with local (Exim 4.69) (envelope-from ) id 1MyunK-0002DK-Qu; Sat, 17 Oct 2009 08:57:06 +1100 User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Fri, 16 Oct 2009 18:07:18 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:32015 Archived-At: Stefan Monnier 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.