From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Oliver Scholz Newsgroups: gmane.emacs.help Subject: Re: [newbie] emacs flyspell not understands well accented chars Date: Tue, 03 Jun 2003 14:52:23 +0200 Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <84znl0ubx6.fsf@lucy.is.informatik.uni-duisburg.de> <87d6hwzah4.fsf@ID-87814.user.dfncis.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1054645013 10727 80.91.224.249 (3 Jun 2003 12:56:53 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 3 Jun 2003 12:56:53 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Tue Jun 03 14:56:50 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19NBLO-0002mk-00 for ; Tue, 03 Jun 2003 14:56:50 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19NBKb-0001LO-36 for gnu-help-gnu-emacs@m.gmane.org; Tue, 03 Jun 2003 08:56:01 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!headwall.stanford.edu!fu-berlin.de!uni-berlin.de!dialin-145-254-191-125.arcor-ip.NET!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 74 Original-NNTP-Posting-Host: dialin-145-254-191-125.arcor-ip.net (145.254.191.125) Original-X-Trace: fu-berlin.de 1054644893 10049409 145.254.191.125 (16 [87814]) X-Attribution: os X-Face: "HgH2sgK|bfH$; PiOJI6|qUCf.ve<51_Od(%ynHr?=>znn#~#oS>",F%B8&\vus),2AsPYb -n>PgddtGEn}s7kH?7kH{P_~vu?]OvVN^qD(L)>G^gDCl(U9n{:d>'DkilN!_K"eNzjrtI4Ya6;Td% IZGMbJ{lawG+'J>QXPZD&TwWU@^~A}f^zAb[Ru;CT(UA]c& User-Agent: Gnus/5.090019 (Oort Gnus v0.19) Emacs/21.3.50 (windows-nt) Cancel-Lock: sha1:ynQYVIzTiGxdqzZib/R5u41h8JY= Original-Xref: shelby.stanford.edu gnu.emacs.help:114035 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:10528 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:10528 Mario Giammarco writes: > Oliver Scholz wrote: > >> Mario Giammarco writes: >> [...] >>> Me too I have done the same thing. when I do flyspell-mode it says error >>> /usr/lib/ispell/italianx.hash not found. >> >> Please post the code that you added to you .emacs. >> > > if I use this .emacs: > > (add-to-list 'ispell-local-dictionary-alist > '("italianx" > "[[:alpha:]]" > "[^[:alpha:]]" > "[']" t > ("-C" "-d" "italian") > "~latin1" iso-8859-15)) > > (setq ispell-dictionary "italianx") Yeah, that's how it should look like. > I obtain at the start of emacs this error: Symbol value as variable is void This error message is about the symbol `ispell-local-dictionary-alist', I presume? Very, very strange, it seems to be preloaded on my Emacs. Does it work, if you put a (require 'ispell) immediately before the `(add-to-list ... )'? > So I modified to this .emacs: > > '(ispell-local-dictionary-alist > '("italianx" > "[[:alpha:]]" > "[^[:alpha:]]" > "[']" t > ("-C" "-d" "italian") > "~latin1" iso-8859-15)) Aah, I suspected something like that. This expression is wrong. It doesn't give an error, of course, but in fact it does absolutely nothing. > (setq ispell-dictionary "italianx") > > Now emacs works but when I start flyspell I got: > > can't open /usr/lib/ispell/italianx.hash^M [...] That's because you have not really modified your dictionary-alist with the expression you used. Unable to get advice from there how to deal with "italianx", Emacs resorts to appending ".hash" to the value of `ispell-dictionary' and hopes for the best. And fails. Please, use the expression you posted first, the one which led to the error message, but put a (require 'ispell) before it. We should try to solve the problem indicated by the error message. Oliver -- 15 Prairial an 211 de la Révolution Liberté, Egalité, Fraternité!