From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Piet van Oostrum Newsgroups: gmane.emacs.devel Subject: Re: flyspell bug Date: Sat, 29 Oct 2005 12:12:01 +0200 Message-ID: References: <20051025005824.089B.SLAWOMIR.NOWACZYK.847@student.lu.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7BIT X-Trace: sea.gmane.org 1130584164 16028 80.91.229.2 (29 Oct 2005 11:09:24 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 29 Oct 2005 11:09:24 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Oct 29 13:09:13 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EVoa1-0002oD-Kd for ged-emacs-devel@m.gmane.org; Sat, 29 Oct 2005 13:08:57 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EVoa0-0008Jq-Uc for ged-emacs-devel@m.gmane.org; Sat, 29 Oct 2005 07:08:56 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EVni0-0002eO-3m for emacs-devel@gnu.org; Sat, 29 Oct 2005 06:13:08 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EVnhy-0002cd-1P for emacs-devel@gnu.org; Sat, 29 Oct 2005 06:13:06 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EVnhx-0002c7-IM for emacs-devel@gnu.org; Sat, 29 Oct 2005 06:13:05 -0400 Original-Received: from [195.121.247.5] (helo=smtp14.wxs.nl) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EVnhx-0001Dw-Ee for emacs-devel@gnu.org; Sat, 29 Oct 2005 06:13:05 -0400 Original-Received: from ordesa.cs.uu.nl (ip54573050.direct-adsl.nl [84.87.48.80]) by smtp14.wxs.nl (iPlanet Messaging Server 5.2 Patch 2 (built Jul 14 2004)) with ESMTP id <0IP400J4P9PSOR@smtp14.wxs.nl> for emacs-devel@gnu.org; Sat, 29 Oct 2005 12:13:04 +0200 (CEST) Original-Received: by ordesa.cs.uu.nl (Postfix, from userid -2) id 88242250D10; Sat, 29 Oct 2005 12:12:03 +0200 (CEST) Original-Received: from ordesa.local (localhost [127.0.0.1]) by ordesa.cs.uu.nl (Postfix) with ESMTP id 9824E250CDF for ; Sat, 29 Oct 2005 12:12:03 +0200 (CEST) In-reply-to: Original-To: emacs-devel@gnu.org X-Mailer: emacs 22.0.50.1 (via feedmail 8 I) User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (darwin) 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:45078 Archived-At: >>>>> "Richard M. Stallman" (RMS) wrote: >RMS> local.h >RMS> distribution dist distr >RMS> Local Variables: >RMS> ispell-local-dictionary: "francais" >RMS> End: >RMS> I can't test this, because I don't have a French dictionary. >RMS> I hope someone else can debug it, if indeed it fails with the >RMS> latest code. Well, I was too fast saying that it worked for me: I also didn't have a french dictionary, I don't write french too often. Moreover I copied the text in a buffer, so the local dictionary wasn't obeyed. I installed the french dictionary and found the bug. The problem is that ispell considers "local.h" an incorrect word, but flyspell-word (and ispell-word) when checking consider "h" the word in 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. By the way, I don't think aspell considers "@" to be a boundarychar. -- Piet van Oostrum URL: http://www.cs.uu.nl/~piet [PGP 8DAE142BE17999C4] Private email: piet@vanoostrum.org