From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#4511: 23.1; flyspell-mode slow editing near end of big html file Date: Fri, 16 Oct 2009 22:14:56 -0400 Message-ID: References: <87ws3sgcm1.fsf@blah.blah> <87vdjaa388.fsf@blah.blah> <87bpk7t32l.fsf@blah.blah> Reply-To: Stefan Monnier , 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 1255746460 15281 80.91.229.12 (17 Oct 2009 02:27:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 17 Oct 2009 02:27:40 +0000 (UTC) Cc: 4511@emacsbugs.donarmstrong.com To: Kevin Ryde Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Oct 17 04:27:29 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 1Myz0v-0005EL-1p for geb-bug-gnu-emacs@m.gmane.org; Sat, 17 Oct 2009 04:27:25 +0200 Original-Received: from localhost ([127.0.0.1]:51921 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Myz0u-0006lY-9z for geb-bug-gnu-emacs@m.gmane.org; Fri, 16 Oct 2009 22:27:24 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Myz0p-0006kx-Os for bug-gnu-emacs@gnu.org; Fri, 16 Oct 2009 22:27:19 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Myz0l-0006k9-4Y for bug-gnu-emacs@gnu.org; Fri, 16 Oct 2009 22:27:19 -0400 Original-Received: from [199.232.76.173] (port=51100 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Myz0k-0006jw-RZ for bug-gnu-emacs@gnu.org; Fri, 16 Oct 2009 22:27:14 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:36838) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Myz0k-0006Xt-CD for bug-gnu-emacs@gnu.org; Fri, 16 Oct 2009 22:27: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 n9H2RBTx027996; Fri, 16 Oct 2009 19:27:12 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n9H2P8Og027615; Fri, 16 Oct 2009 19:25:08 -0700 Resent-Date: Fri, 16 Oct 2009 19:25:08 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Stefan Monnier Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Sat, 17 Oct 2009 02:25:07 +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.125574570426171 (code B ref 4511); Sat, 17 Oct 2009 02:25:07 +0000 Original-Received: (at 4511) by emacsbugs.donarmstrong.com; 17 Oct 2009 02:15:04 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from ironport2-out.pppoe.ca (ironport2-out.teksavvy.com [206.248.154.183]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n9H2F22E026061 for <4511@emacsbugs.donarmstrong.com>; Fri, 16 Oct 2009 19:15:04 -0700 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AtAEAPvF2EpFpY7q/2dsb2JhbACBUdcBgkGBcASHfQ X-IronPort-AV: E=Sophos;i="4.44,577,1249272000"; d="scan'208";a="47725651" Original-Received: from 69-165-142-234.dsl.teksavvy.com (HELO ceviche.home) ([69.165.142.234]) by ironport2-out.pppoe.ca with ESMTP; 16 Oct 2009 22:14:56 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 56086B40DB; Fri, 16 Oct 2009 22:14:56 -0400 (EDT) In-Reply-To: <87bpk7t32l.fsf@blah.blah> (Kevin Ryde's message of "Sat, 17 Oct 2009 08:57:06 +1100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Fri, 16 Oct 2009 22:27:19 -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:32019 Archived-At: > 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. If performance is good enough, then it's a very good option, indeed. Stefan