unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Oliver Scholz <alkibiades@gmx.de>
Subject: Re: [newbie] emacs flyspell not understands well accented chars
Date: Tue, 03 Jun 2003 16:53:57 +0200	[thread overview]
Message-ID: <uof1fb4ai.fsf@ID-87814.user.dfncis.de> (raw)
In-Reply-To: 2y1Da.34210$pR3.724186@news1.tin.it

Mario Giammarco <mgiammarco@nospam.supereva.it> 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é!

  reply	other threads:[~2003-06-03 14:53 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-01 17:28 [newbie] emacs flyspell not understands well accented chars Mario Giammarco
2003-06-01 18:27 ` Eli Zaretskii
     [not found] ` <mailman.7104.1054492093.21513.help-gnu-emacs@gnu.org>
2003-06-01 18:57   ` Ole Laursen
2003-06-01 19:08   ` Stefan Monnier
2003-06-01 20:27     ` Mario Giammarco
2003-06-01 20:02   ` Mario Giammarco
2003-06-02  8:21   ` Kai Großjohann
2003-06-02 11:14     ` Oliver Scholz
2003-06-02 12:09       ` Mario Giammarco
2003-06-02 13:53         ` Oliver Scholz
2003-06-02 15:30           ` Mario Giammarco
2003-06-02 16:54             ` Oliver Scholz
2003-06-02 17:11               ` Mario Giammarco
2003-06-02 17:39                 ` Oliver Scholz
2003-06-03  8:31                   ` Mario Giammarco
2003-06-03 12:52                     ` Oliver Scholz
2003-06-03 13:39                       ` Mario Giammarco
2003-06-03 14:53                         ` Oliver Scholz [this message]
2003-06-03 18:21                           ` Mario Giammarco
2003-06-03 19:57                             ` Oliver Scholz
2003-06-03 20:32                               ` Mario Giammarco
2003-06-04 17:43                                 ` Mario Giammarco
2003-06-04 21:32                                   ` Oliver Scholz
2003-06-05 12:01                                     ` Mario Giammarco
2003-06-05 12:17                                       ` Mario Giammarco
2003-06-05 22:21                                       ` Oliver Scholz
2003-06-06  8:33                                         ` Mario Giammarco
2003-06-06 11:09                                           ` Oliver Scholz
2003-06-06 12:27                                             ` Mario Giammarco
2003-06-06 12:52                                               ` Oliver Scholz
2003-06-06 13:28                                                 ` Mario Giammarco
2003-06-06 13:40                                                   ` Oliver Scholz
2003-06-06 14:01                                                     ` Mario Giammarco
2003-06-07 10:16                                                       ` Reiner Steib
2003-06-07 12:18                                                         ` Mario Giammarco
2003-06-06 12:42                                             ` Mario Giammarco
2003-06-03 19:20                           ` Stefan Monnier
2003-06-02 17:18               ` Mario Giammarco
2003-06-02 17:40                 ` Oliver Scholz
2003-06-03  8:32               ` Mario Giammarco
2003-06-03 12:36                 ` Oliver Scholz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=uof1fb4ai.fsf@ID-87814.user.dfncis.de \
    --to=alkibiades@gmx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).