From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: More problems with flyspell Date: Mon, 09 Jan 2006 16:53:31 -0500 Message-ID: References: <20060106001120.GA6376@agmartin.aq.upm.es> <20060109125313.GA5011@agmartin.aq.upm.es> <20060109182611.GA4925@agmartin.aq.upm.es> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1136844193 29529 80.91.229.2 (9 Jan 2006 22:03:13 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 9 Jan 2006 22:03:13 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 09 23:03:09 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Ew56Z-0000t9-C9 for ged-emacs-devel@m.gmane.org; Mon, 09 Jan 2006 23:03:07 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ew50P-0001X3-Nu for ged-emacs-devel@m.gmane.org; Mon, 09 Jan 2006 16:56:45 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ew4zO-00012D-D8 for emacs-devel@gnu.org; Mon, 09 Jan 2006 16:55:42 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ew4zM-000113-7z for emacs-devel@gnu.org; Mon, 09 Jan 2006 16:55:41 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ew4zL-00010n-Qc for emacs-devel@gnu.org; Mon, 09 Jan 2006 16:55:39 -0500 Original-Received: from [132.204.24.67] (helo=mercure.iro.umontreal.ca) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Ew51g-0000ee-S7 for emacs-devel@gnu.org; Mon, 09 Jan 2006 16:58:05 -0500 Original-Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca [132.204.27.50]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id DC2AA2CE9B5; Mon, 9 Jan 2006 16:53:36 -0500 (EST) Original-Received: from asado.iro.umontreal.ca (asado.iro.umontreal.ca [132.204.24.84]) by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id 426144AC00A; Mon, 9 Jan 2006 16:53:31 -0500 (EST) Original-Received: by asado.iro.umontreal.ca (Postfix, from userid 20848) id 2D3D0E6C1A; Mon, 9 Jan 2006 16:53:31 -0500 (EST) Original-To: Agustin Martin In-Reply-To: <20060109182611.GA4925@agmartin.aq.upm.es> (Agustin Martin's message of "Mon, 9 Jan 2006 19:26:11 +0100") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-4.853, requis 5, autolearn=not spam, AWL 0.05, BAYES_00 -4.90) X-MailScanner-From: monnier@iro.umontreal.ca X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:48881 Archived-At: > @@ -2630,8 +2639,13 @@ > (let ((dict (or ispell-local-dictionary ispell-dictionary))) > (unless (equal ispell-current-dictionary dict) > (ispell-kill-ispell t) > - (setq ispell-current-dictionary dict)))) > - > + (setq ispell-current-dictionary dict) > + ;; If needed, start ispell process and clear out flyspell word cache > + (when (featurep 'flyspell) > + (setq flyspell-last-buffer nil) ;; re-read buffer-local-defs > + (when flyspell-mode > + (ispell-init-process) > + (setq flyspell-word-cache-word nil)))))) Looking at this patch, I feel like my flyspell-last-buffer should probably be moved from flyspell.el to ispell.el (and renamed ispell-last-buffer). If someone could do that for me, that'd be swell, Stefan PS: Maybe the same should be done with flyspell-word-cache-word, of course, but I'm not familiar enough with it.