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: Sat, 29 Oct 2005 16:34:01 -0400 Message-ID: References: <20051025005824.089B.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 1130618219 475 80.91.229.2 (29 Oct 2005 20:36:59 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 29 Oct 2005 20:36:59 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Oct 29 22:36:51 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EVxQx-0000Ip-RW for ged-emacs-devel@m.gmane.org; Sat, 29 Oct 2005 22:36:12 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EVxQx-0001HI-20 for ged-emacs-devel@m.gmane.org; Sat, 29 Oct 2005 16:36:11 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EVxOt-0000Em-63 for emacs-devel@gnu.org; Sat, 29 Oct 2005 16:34:03 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EVxOs-0000EQ-AV for emacs-devel@gnu.org; Sat, 29 Oct 2005 16:34:02 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EVxOs-0000EL-4J for emacs-devel@gnu.org; Sat, 29 Oct 2005 16:34:02 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EVxOs-0008Jp-8j for emacs-devel@gnu.org; Sat, 29 Oct 2005 16:34:02 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1EVxOr-0003cU-Bw; Sat, 29 Oct 2005 16:34:01 -0400 Original-To: Piet van Oostrum In-reply-to: (message from Piet van Oostrum on Sat, 29 Oct 2005 12:12:01 +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:45106 Archived-At: question and consider it good. The reason is that ispell.el and ispell the program don't agree on what's a word. In francais.aff the boundarychars are [-'.@] and in the ispell-dictionary-alist only [-']. Therefore ispell the program considers "local.h" one word and ispell.el considers it two words. I don't know why "." and "@" are included in the affix file (especially "@" seems strange) but I guess a French person might explain it. Anyway it helps to add "." and "@" to otherchars in the ispell-dictionary-alist entry for francais. It is not obvious to me how to do that. Could you send the patch that you are proposing? One possible problem occurs to me: would adding . to this cause incorrect behavior at the end of nearly every sentence? Meanwhile, does this patch fix the problem? It tries to detect such cases, and recognize that the word has been found but can't really be checked. *** flyspell.el 25 Oct 2005 09:08:25 -0400 1.81 --- flyspell.el 29 Oct 2005 12:06:29 -0400 *************** *** 1356,1362 **** (progn (setq flyspell-large-region-beg (point)) (goto-char (- (point) 1)) ! (setq keep (flyspell-word))) (error "Bug: misspelled word `%s' (output pos %d) not found in buffer" word wordpos))))))) ;; we are done --- 1356,1365 ---- (progn (setq flyspell-large-region-beg (point)) (goto-char (- (point) 1)) ! (if (< (length (flyspell-get-word following)) ! (length word)) ! (setq keep nil) ! (setq keep (flyspell-word)))) (error "Bug: misspelled word `%s' (output pos %d) not found in buffer" word wordpos))))))) ;; we are done