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: Problems with ispell/flyspell Date: Wed, 21 Dec 2005 20:43:36 -0500 Message-ID: <877j9xj4kk.fsf-monnier+emacs@gnu.org> References: <87zmmui0a1.fsf-monnier+emacs@gnu.org> <20051222000012.GA7843@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 1135215832 1913 80.91.229.2 (22 Dec 2005 01:43:52 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 22 Dec 2005 01:43:52 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Dec 22 02:43:51 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 1EpFUi-0003Xq-Q8 for ged-emacs-devel@m.gmane.org; Thu, 22 Dec 2005 02:43:49 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EpFVh-0007K8-AE for ged-emacs-devel@m.gmane.org; Wed, 21 Dec 2005 20:44:49 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EpFVY-0007K3-Jw for emacs-devel@gnu.org; Wed, 21 Dec 2005 20:44:40 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EpFVX-0007Jr-28 for emacs-devel@gnu.org; Wed, 21 Dec 2005 20:44:40 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EpFVW-0007Jo-U6 for emacs-devel@gnu.org; Wed, 21 Dec 2005 20:44:39 -0500 Original-Received: from [209.226.175.188] (helo=tomts25-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EpFUZ-0006KF-9f for emacs-devel@gnu.org; Wed, 21 Dec 2005 20:43:39 -0500 Original-Received: from alfajor ([67.68.217.67]) by tomts25-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20051222014336.ZRQH25777.tomts25-srv.bellnexxia.net@alfajor>; Wed, 21 Dec 2005 20:43:36 -0500 Original-Received: by alfajor (Postfix, from userid 1000) id 7445CD7367; Wed, 21 Dec 2005 20:43:36 -0500 (EST) Original-To: Agustin Martin In-Reply-To: <20051222000012.GA7843@agmartin.aq.upm.es> (Agustin Martin's message of "Thu, 22 Dec 2005 01:00:12 +0100") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-Originating-IP: [0] 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:48194 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? Usually nothing, probably because post-command-hook has already been set to nil. >> - 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? No, that fixed it. So it seems the problem showed up because Debian split the English dict into a separate package which `apt-get upgrade' didn't install. But, yes, there should be a better fallback in case there's no English dictionary. An option maybe is to just use the fallback that's already there: the first entry in ispell-dictionary-alist-1. >> 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? Neither: the surprise is that *both* are installed. Stefan