From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Agustin Martin Newsgroups: gmane.emacs.devel Subject: Re: Problems with ispell/flyspell Date: Thu, 22 Dec 2005 01:00:12 +0100 Message-ID: <20051222000012.GA7843@agmartin.aq.upm.es> References: <87zmmui0a1.fsf-monnier+emacs@gnu.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1135210527 20939 80.91.229.2 (22 Dec 2005 00:15:27 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 22 Dec 2005 00:15:27 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Dec 22 01:15:25 2005 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 1EpE73-0006eA-Ud for ged-emacs-devel@m.gmane.org; Thu, 22 Dec 2005 01:15:18 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EpE81-0005LT-VZ for ged-emacs-devel@m.gmane.org; Wed, 21 Dec 2005 19:16:18 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EpE7Q-0005LA-If for emacs-devel@gnu.org; Wed, 21 Dec 2005 19:15:40 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EpE7P-0005Ks-MD for emacs-devel@gnu.org; Wed, 21 Dec 2005 19:15:40 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EpE7P-0005Kp-8X for emacs-devel@gnu.org; Wed, 21 Dec 2005 19:15:39 -0500 Original-Received: from [138.100.4.49] (helo=edison.ccupm.upm.es) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EpE6Q-0002H2-Oc for emacs-devel@gnu.org; Wed, 21 Dec 2005 19:14:39 -0500 Original-Received: from debian ([138.100.247.74]) by edison.ccupm.upm.es (8.12.10/8.12.10) with ESMTP id jBM0EYQ2001765; Thu, 22 Dec 2005 01:14:35 +0100 Original-Received: by debian (Postfix, from userid 1000) id DF4B517DF5; Thu, 22 Dec 2005 01:00:12 +0100 (CET) Original-To: emacs-devel@gnu.org Content-Disposition: inline In-Reply-To: <87zmmui0a1.fsf-monnier+emacs@gnu.org> User-Agent: Mutt/1.5.9i 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:48191 Archived-At: On Wed, Dec 21, 2005 at 05:11:54PM -0500, Stefan Monnier wrote: > - when I start flyspell-mode, I tend to get an error of the form: > > "Error: no word lists can be found for the language fr_CH" My first impression is that you are using aspell and fr_CH locale and did not explicitely select any dict (and have no aspell fr_CH dict available). What happens if you explicitely select a dict by means of ispell-change-dictionary? > - later on, while using flyspell, I get errors of the form > "wrong-argument-type, string, nil" because > in ispell-find-aspell-dictionaries, (assoc "en" ispell-dictionary-alist) > has returned nil, which caused ispell-dictionary-alist to have an entry of > the form (nil), so when ispell-current-dictionary is nil, > (ispell-get-decoded-string 1) returns nil, so ispell-get-casechars returns > nil, so flyspell-get-casechars returns nil, so flyspell-get-word > does a (looking-at nil) which signals an error. and also have no aspell english dict installed. Probably a reasonable fallback should be added for default in case an english dict is not available. Does the problem persist if you have an aspell english dict installed? > This is on a machine where I have both ispell and aspell installed > (as I just discovered), in case it matters. Which one is the surprise? Note that for emacs-cvs ispell.el, if aspell is installed it is the default, even if it has no dictionaries available for the desired language. You will need to explicitely set ispell-program-name to ispell if you want it. Hope this helps -- Agustin