On Sun, Oct 09, 2005 at 11:10:13AM -0400, Jay Berkenbilt wrote:
> Romain Francoise <[EMAIL PROTECTED]> wrote:
> 
> >> emacs -q --no-site-file
> >> M-x flyspell-mode
> >> flyspell-mode-on: Symbol's function definition is void:
> >> ispell-maybe-find-aspell-dictionaries
> >
> >> This error just appeared when I upgraded to 1:20051007-1.  I use
> >> flyspell mode heavily, so this renders emacs unusable for me.
> >
> > Yup, it's because you have dictionaries-common installed, it shadows
> > emacs-snapshot's ispell.el and its version of ispell.el lacks this
> > function (which flyspell.el needs).
> 
> > As a workaround, you can just remove the following file:
> >
> >     /usr/share/emacs-snapshot/site-lisp/dictionaries-common/ispell.elc
> 
> Thanks.  This worked for me after I installed aspell-en.  Before I did
> that, I had received the error:
> 
> ispell-init-process: Error: No word lists can be found for the language 
> "en_US".
> 
> If anyone else complains about this, it's probably because they don't
> have the right aspell dictionaries installed.

Does explicitely setting ispell-local-dictionary in your ~/.emacs file work?

> Kind of makes me wonder
> how this ever worked.  Oh, I see -- emacs 21's ispell mode used
> ispell, not aspell.

I do not think so, dictionaries-common initialization files try to find a
match for LANG->ispell_local_dictionary if ispell-local-dictionary is not
explicitely set and the aspell dict informs about the equivalences. That is
included into the debian-aspell-equivs-alist built after info provided by
aspell dict maintainers on dict installation. In the system I am writing
from that reads (see /var/cache/dictionaries-common/emacsen-ispell-dicts.el)

(setq debian-aspell-equivs-alist '(
     ("es" "castellano8")
     ("es_ES" "castellano8")
     ("gl" "galego-minimos")
     ("gl_ES" "galego-minimos")
     ("[EMAIL PROTECTED]" "galego-minimos")
))

so if LANG is "es_ES" "castellano8" should automatically be selected as
default dict for aspell, unless ispell-local-dictionary is explicitely set,
but that will not happen for emacs-snapshot, since it is standalone.

Now that emacs-cvs people is actively working on aspell support something of
this kind might soon be included for all dicts in ispell-dictionary-alist,
that is currently a really moving target. I still have to rewrite some parts
of the Debian code, once ready, that might be useful for them too.

Cheers,

-- 
Agustin


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to