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 21:57:27 +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 1054670535 14524 80.91.224.249 (3 Jun 2003 20:02:15 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 3 Jun 2003 20:02:15 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Tue Jun 03 22:02:13 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 19NHz2-0003lv-00 for ; Tue, 03 Jun 2003 22:02:12 +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 19NHxN-0002TN-Qy for gnu-help-gnu-emacs@m.gmane.org; Tue, 03 Jun 2003 16:00:29 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!skynet.be!skynet.be!fu-berlin.de!uni-berlin.de!dialin-145-254-191-184.arcor-ip.NET!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 63 Original-NNTP-Posting-Host: dialin-145-254-191-184.arcor-ip.net (145.254.191.184) Original-X-Trace: fu-berlin.de 1054670344 9822113 145.254.191.184 (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:G5I1NAXABD5zgU+pYrZ13Hknyx4= Original-Xref: shelby.stanford.edu gnu.emacs.help:114059 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:10553 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:10553 Mario Giammarco writes: [...] > I HAVE NOT MODIFIED ANYTHING, SIMPLE COPY AND PASTE! O.k., o.k., o.k., sorry ... :-) > Debugger entered--Lisp error: (void-variable ) ^^^^^^^^^^^^^ > (add-to-list (quote ispell-local-dictionary-alist) (quote ^^^^^^^^^^^^ > ("italianx" "[[:alpha:]]" "[^[:alpha:]]" "[']" t ... "~latin1" > iso-8859-15))) > eval((add-to-list (quote ispell-local-dictionary-alist) > (quote ("italianx" "[[:alpha:]]" "[^[:alpha:]]" "[']" t ... "~latin1" > iso-8859-15)))) > eval-last-sexp-1(nil) > eval-last-sexp(nil) > call-interactively(eval-last-sexp) I am lost here, I'm afraid. :-( I have never seen this before. It looks as if Emacs treats the whitespace between `(quote ispell-l-d-a)' and `(quote ("italianx" ...' as a symbol. Does anybody here have a clue what this could be? Is it even conceivable that something causes such a bug in the Lisp reader? Hmm, except ... hmmm. This is just a wild guess: When you copied and pasted the code from you newsreader into Emacs -- is it possible that one or more of the spaces and tabs were replaced with Unicode-whitespace characters from the range U+2000 to U+200F? This is the only case I know of that whitespace is treated as a symbol by the Lisp-reader. Could you make sure that everything between 'ispell-local-dictionary-alist and '("italianx" ...) is either a space (ASCII-codepoint: 32), a tab (9) or a newline (10)? You can check this with `C-x ='. It is sufficient, if there is just a single space character in between. But, as I said: this is just a very wild guess. [...] > Thanks for the lisp mini tutorial! > But anyway I would like to know also emacs-lisp "api" to make my own > beautiful macros... In that case you should take my explanation with a grain of salt. It was meant to enable a programmer used to Algol-like languages to make some more or less educated guesses when exposed to a Lisp expression, no more. > Because a programmer must know how to program is editor... > Perhaps one day I will have time to learn! That's the spirit. Beware, it's addicting. When you find the time to do it, have a look at the "Introduction to Emacs Lisp" (elisp-intro) and the "Emacs Lisp Reference Manual", you can get both as Texinfo from ftp.gnu.org. Oliver -- 15 Prairial an 211 de la Révolution Liberté, Egalité, Fraternité!