From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Richard M. Stallman" Newsgroups: gmane.emacs.devel Subject: Re: flyspell bug Date: Mon, 07 Nov 2005 10:35:10 -0500 Message-ID: References: <20051029020814.1F73.SLAWOMIR.NOWACZYK.847@student.lu.se> <20051031164057.1F82.SLAWOMIR.NOWACZYK.847@student.lu.se> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1131378065 2471 80.91.229.2 (7 Nov 2005 15:41:05 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 7 Nov 2005 15:41:05 +0000 (UTC) Cc: Ken Stevens , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 07 16:41:02 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EZ96X-0005Nu-Bt for ged-emacs-devel@m.gmane.org; Mon, 07 Nov 2005 16:40:17 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EZ96W-0001fn-1D for ged-emacs-devel@m.gmane.org; Mon, 07 Nov 2005 10:40:16 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EZ91c-0006Q3-O1 for emacs-devel@gnu.org; Mon, 07 Nov 2005 10:35:12 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EZ91c-0006PH-2m for emacs-devel@gnu.org; Mon, 07 Nov 2005 10:35:12 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EZ91b-0006P5-Mh for emacs-devel@gnu.org; Mon, 07 Nov 2005 10:35:11 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EZ91b-0006GM-Sh for emacs-devel@gnu.org; Mon, 07 Nov 2005 10:35:11 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1EZ91a-0005Dl-UQ; Mon, 07 Nov 2005 10:35:10 -0500 Original-To: Slawomir Nowaczyk In-reply-to: <20051031164057.1F82.SLAWOMIR.NOWACZYK.847@student.lu.se> (message from Slawomir Nowaczyk on Mon, 31 Oct 2005 16:50:59 +0200) 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:45551 Archived-At: For example, run the below in this buffer: (setq flyspell-large-region 20) (flyspell-buffer) If you remove the line below, it still doesn't work. But if you remove the line, kill the buffer and revisit it, everything will work fine. LocalWords: blabla The bug in this case is that the LocalWords are not known to the ispell process that is used by flyspell-large-region. It clearly needs the change below. With that change, ispell-buffer-local-words gets called at the right time, finds blabla, and sends it to the ispell process. ispell-kill-ispell is not called again before flyspell-large-region sends the text to the process. Despite that, blabla is still included in the list of misspelled words in the buffer. I am stumped now. Ken, can you help? *** flyspell.el 04 Nov 2005 17:32:58 -0500 1.85 --- flyspell.el 06 Nov 2005 21:29:35 -0500 *************** *** 1384,1389 **** --- 1384,1390 ---- (setq flyspell-large-region-buffer curbuf) (setq flyspell-large-region-beg beg) (setq flyspell-large-region-end end) + (flyspell-accept-buffer-local-defs) (set-buffer buffer) (erase-buffer) ;; this is done, we can start checking...