From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Agustin Martin Newsgroups: gmane.emacs.bugs Subject: bug#7343: Making flyspell incredibly fast when checking whole files Date: Wed, 10 Nov 2010 15:44:14 +0100 Message-ID: <20101110144414.GA4565@agmartin.aq.upm.es> References: <874obu5z1z.fsf@asaph.rhodesmill.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1289402045 26056 80.91.229.12 (10 Nov 2010 15:14:05 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 10 Nov 2010 15:14:05 +0000 (UTC) To: Brandon Craig Rhodes , 7343-done@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Nov 10 16:14:01 2010 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.69) (envelope-from ) id 1PGCN4-0006jj-NW for geb-bug-gnu-emacs@m.gmane.org; Wed, 10 Nov 2010 16:13:59 +0100 Original-Received: from localhost ([127.0.0.1]:35395 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PGCN4-0002k1-2l for geb-bug-gnu-emacs@m.gmane.org; Wed, 10 Nov 2010 10:13:58 -0500 Original-Received: from [140.186.70.92] (port=46515 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PGCMy-0002jW-44 for bug-gnu-emacs@gnu.org; Wed, 10 Nov 2010 10:13:53 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PGCMw-0006IW-PS for bug-gnu-emacs@gnu.org; Wed, 10 Nov 2010 10:13:52 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59568) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PGCMw-0006IR-Ne for bug-gnu-emacs@gnu.org; Wed, 10 Nov 2010 10:13:50 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PGBqH-0000sf-8t for bug-gnu-emacs@gnu.org; Wed, 10 Nov 2010 09:40:05 -0500 Resent-From: Agustin Martin Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Wed, 10 Nov 2010 14:40:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 7343 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 7343@debbugs.gnu.org, agustin.martin@hispalinux.es Original-Received: via spool by 7343-done@debbugs.gnu.org id=D7343.12893999793353 (code D ref 7343); Wed, 10 Nov 2010 14:40:05 +0000 Original-Received: (at 7343-done) by debbugs.gnu.org; 10 Nov 2010 14:39:39 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PGBpq-0000s2-ME for submit@debbugs.gnu.org; Wed, 10 Nov 2010 09:39:39 -0500 Original-Received: from edison.ccupm.upm.es ([138.100.198.71] helo=smtp.upm.es) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PGBpk-0000rw-Hn for 7343-done@debbugs.gnu.org; Wed, 10 Nov 2010 09:39:36 -0500 Original-Received: from agmartin.aq.upm.es (Agmartin.aq.upm.es [138.100.41.131]) by smtp.upm.es (8.14.3/8.14.3/edison-001) with ESMTP id oAAEiEa2005718; Wed, 10 Nov 2010 15:44:14 +0100 Original-Received: by agmartin.aq.upm.es (Postfix, from userid 1000) id 3BCE1598B2; Wed, 10 Nov 2010 15:44:14 +0100 (CET) Content-Disposition: inline In-Reply-To: <874obu5z1z.fsf@asaph.rhodesmill.org> User-Agent: Mutt/1.5.20 (2009-06-14) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 10 Nov 2010 09:40:05 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org 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:41468 Archived-At: On Sat, Nov 06, 2010 at 10:03:52AM -0400, Brandon Craig Rhodes wrote: > A patch is attached that fixes this problem, and - here on my laptop, at > least - makes flyspell blazing fast at even large files. The mechanism > is simple: I have added a second optional argument to flyspell-word, > named "known-misspelling", that tells flyspell-word that the word has > already been checked and is a misspelling and does not need to be > checked again. Then, down in the function, I simply placed the entire > interactive session with ispell/aspell/hunspell inside of an "if". Installed in the Emacs bzr repo. Closing bug report. Thanks a lot for your patch, -- Agustin