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 16:53:57 +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> <2y1Da.34210$pR3.724186@news1.tin.it> 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 1054652541 18485 80.91.224.249 (3 Jun 2003 15:02:21 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 3 Jun 2003 15:02:21 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Tue Jun 03 17:02:19 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 19NDIF-0004k9-00 for ; Tue, 03 Jun 2003 17:01:44 +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 19NDHF-0007As-6W for gnu-help-gnu-emacs@m.gmane.org; Tue, 03 Jun 2003 11:00:41 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!fu-berlin.de!uni-berlin.de!dialin-145-254-192-080.arcor-ip.NET!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 136 Original-NNTP-Posting-Host: dialin-145-254-192-080.arcor-ip.net (145.254.192.80) Original-X-Trace: fu-berlin.de 1054652237 9907925 145.254.192.80 (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:AwCBE1CzZfK4bFgWpt4XKV1C5LE= Original-Xref: shelby.stanford.edu gnu.emacs.help:114042 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:10536 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:10536 Mario Giammarco writes: > Oliver Scholz wrote: > > >>> 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 ... )'? >> > > I have put (require 'ispell) as you said but the error persists, this is the > backtrace: > > Debugger entered--Lisp error: (void-variable ) > (add-to-list (quote ispell-local-dictionary-alist) (quote [...] Huh? This looks very, very wrong. Did you modify this backtrace somehow? If not, then I am really puzzled. If `ispell-local-dictionary-alist' is undefined (if that's the reason for the error), then I'd expect to see something like Debugger entered--Lisp error: (void-variable ispell-local-dictionary-alist) add-to-list(ispell-local-dictionary-alist ("italianx" "[[:alpha:]]" "[^[:alpha:]]" "[']" t ("-C" "-d" "italian") "~latin1" iso-8859-15)) [...] ... alright let's go about this methodically: 1) Please remove the `add-to-list' expression from your .emacs and start it as usual. Then type `M-x locate-library RET ispell RET' and post what you see in the echo area (messages are collected in a special buffer *Messages*, you can copy&paste the line from there). One possible reason why you Emacs behaves in a different way than mine could be that you have a second ispell.el library in your load-path which shadows the ispell.el that comes with Emacs. If that's the case, we'll find it out with `M-x locate-library'. 2) Please start Emacs from a command line like this: emacs -q --no-site-file This makes sure that Emacs does not load your configuration file, which makes sure that there is no other, unrelated problem that could interfere here. Then insert the `(add-to-list ... )' expression into the buffer named *scratch*. Move the cursor behind the last parenthesis and type `C-x C-e'. Do you get a similar error? If so, please post the whole backtrace (per copy&past) and then try to replace `ispell-local-dictionary-alist' with `ispell-dictionary-alist': (add-to-list 'ispell-dictionary-alist '("italianx" "[[:alpha:]]" "[^[:alpha:]]" "[']" t ("-C" "-d" "italian") "~latin1" iso-8859-15)) Again, put point behind the last parenthesis and hit `C-x C-e'. Do you get an error then, too? >> 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. >> > Sigh I newer will be a lisp programmer :-( If everything is alright, you normally shouldn't have to expose yourself to Lisp in order to use Emacs. Unfortunately sometimes things go wrong as in your case. Personally I found Lisp very easy as my first programming language. I think, if you already know other programming languages, you could have slightly more problems with it, because it is so very different, constituting a whole family of its own. In case, you are interested: here are some very simplified notes about Lisp-expressions: (symbol ....) This expression calls a function named `symbol'. Everything else inside the parentheses is passed as an argument to the function `symbol'. '(symbol ...) This expression is just a list with the symbol `symbol' as its first element. No function call takes place, because of the `''. That is: the expression is _quoted_. symbol This symbol is treated as the name of a variable. The Lisp interpreter evaluates it and uses its value. 'symbol This symbol is quoted. The Lisp interpreter uses the symbol itself. (Symbols are a special data type in Lisp.) Now this stuff works together recursively: (symbol-1 'symbol-2 ; First argument symbol-3 ; Second argument (symbol-4) ; Third argument '(symbol-5 symbol-6)) ; Fourth argument This calls the _function_ symbol-1 with four arguments: 1) The symbol symbol-2, 2) the value of the variable `symbol-3'. 3) To get the third argument, the Lisp interpreter calls the _function_ `symbol-4' (without arguments), its return value is after that used as the third argument for the function `symbol-1'. 4) A list with the symbols `symbol-5' and `symbol-6' as its elements. I hope, I didn't introduce more confusion. Don't worry. Even if you don't know Lisp: I do. Just make sure, that you post _exactly_ what you do. Oliver -- 15 Prairial an 211 de la Révolution Liberté, Egalité, Fraternité!