unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Ispell doesn't show all dictionaries
@ 2013-06-26  9:31 Maikol
  2013-06-26  9:45 ` Peter Dyballa
  0 siblings, 1 reply; 7+ messages in thread
From: Maikol @ 2013-06-26  9:31 UTC (permalink / raw)
  To: help-gnu-emacs

 Hello guys,

I'm almost new using Emacs and I'm having some troubles with ispell.
If I run emacs normally and try to change the ispell dictionary (M-x
ispell-change-dictionary) I only get these options

american     default
english     francais.


But, if I run "emacs -Q" (the lightest way to run emacs, thought) I get all
the installed dictionaries in my computer


american     american-variant_0     american-variant_1
american-w_accents     american-wo_accents     brasileiro
british     british-ise     british-ise-w_accents
british-ise-wo_accents     british-ize     british-ize-w_accents
british-ize-wo_accents     british-variant_0     british-variant_1
british-w_accents     british-wo_accents     canadian
canadian-variant_0     canadian-variant_1     canadian-w_accents
canadian-wo_accents     castellano     castellano8
czech     dansk     default
deutsch     deutsch8    ...  and a long etc ...

 Could someone help me to figure it out what happened and how to fix it?

Best regards,

--
Maikol


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Ispell doesn't show all dictionaries
  2013-06-26  9:31 Ispell doesn't show all dictionaries Maikol
@ 2013-06-26  9:45 ` Peter Dyballa
  2013-06-26 11:37   ` Maikol
  0 siblings, 1 reply; 7+ messages in thread
From: Peter Dyballa @ 2013-06-26  9:45 UTC (permalink / raw)
  To: Maikol; +Cc: help-gnu-emacs


Am 26.06.2013 um 11:31 schrieb Maikol:

> Could someone help me to figure it out what happened and how to fix it?

What happens when you launch GNU Emacs with -q instead of -Q? Do you see more or less dictionaries than with -Q?

--
Greetings

  Pete

Know thyself. Need help, call GOOGLE.




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Ispell doesn't show all dictionaries
  2013-06-26  9:45 ` Peter Dyballa
@ 2013-06-26 11:37   ` Maikol
  2013-06-26 11:45     ` Peter Dyballa
  0 siblings, 1 reply; 7+ messages in thread
From: Maikol @ 2013-06-26 11:37 UTC (permalink / raw)
  To: Peter Dyballa; +Cc: help-gnu-emacs

Hello Pete,


> What happens when you launch GNU Emacs with -q instead of -Q?
> Do you see more or less dictionaries than with -Q?
>

No, unfortunately I don't :

emacs -q
M-x ispell-change-dictionary RET SPC
american     default
english     francais

Best regards


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Ispell doesn't show all dictionaries
  2013-06-26 11:37   ` Maikol
@ 2013-06-26 11:45     ` Peter Dyballa
  2013-06-26 11:52       ` Maikol
  0 siblings, 1 reply; 7+ messages in thread
From: Peter Dyballa @ 2013-06-26 11:45 UTC (permalink / raw)
  To: Maikol; +Cc: help-gnu-emacs


Am 26.06.2013 um 13:37 schrieb Maikol:

> Hello Pete,
> 
> 
>> What happens when you launch GNU Emacs with -q instead of -Q?
>> Do you see more or less dictionaries than with -Q?
>> 
> 
> No, unfortunately I don't :
> 
> emacs -q
> M-x ispell-change-dictionary RET SPC
> american     default
> english     francais
> 
> Best regards


So the conclusion is that your system's init file (by the name of site-init.el or site-start.el) is blanking out the other Ispell dictionaries. Locate that file, check its contents, correct, maybe remove that file!

Launching GNU Emacs with -q lets it load only the system init file.
Launching GNU Emacs with -Q lets it load no init file.


--
Greetings

  Pete

If the majority of cooking accidents happen in the kitchen, then why don't we just cook in other rooms?




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Ispell doesn't show all dictionaries
  2013-06-26 11:45     ` Peter Dyballa
@ 2013-06-26 11:52       ` Maikol
  2013-06-26 12:09         ` Maikol
  2013-06-26 14:32         ` Peter Dyballa
  0 siblings, 2 replies; 7+ messages in thread
From: Maikol @ 2013-06-26 11:52 UTC (permalink / raw)
  To: Peter Dyballa; +Cc: help-gnu-emacs

I
f
ound it in /usr/share/emacs/site-lisp/site-start.el. It seems that the
problem is in these lines,

;;
> ;; Preload dynamic (i)Spell menu
> ;; -----------------------------
> (if (not (load "/usr/lib/ispell/ispell-emacs-menu.el" t t))
>   (let ((aspells (file-expand-wildcards "/usr/lib/aspell*")))
>     (dolist (aspell aspells)
>       (if (and (stringp aspell)
>                (file-exists-p aspell))
>         (load "ispell" nil t)))))
>

What do you think?

B
est regards.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Ispell doesn't show all dictionaries
  2013-06-26 11:52       ` Maikol
@ 2013-06-26 12:09         ` Maikol
  2013-06-26 14:32         ` Peter Dyballa
  1 sibling, 0 replies; 7+ messages in thread
From: Maikol @ 2013-06-26 12:09 UTC (permalink / raw)
  Cc: help-gnu-emacs

I commented these lines and now it works perfectly.

Thanks for your help Pete.

Regards,


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Ispell doesn't show all dictionaries
  2013-06-26 11:52       ` Maikol
  2013-06-26 12:09         ` Maikol
@ 2013-06-26 14:32         ` Peter Dyballa
  1 sibling, 0 replies; 7+ messages in thread
From: Peter Dyballa @ 2013-06-26 14:32 UTC (permalink / raw)
  To: Maikol; +Cc: help-gnu-emacs


Am 26.06.2013 um 13:52 schrieb Maikol:

>> (if (not (load "/usr/lib/ispell/ispell-emacs-menu.el" t t))
> 

AFAIU: if GNU Emacs cannot load the file, it turns into "aspell mode" (otherwise ispell). Commenting will work until the next system update. Then the edited /usr/share/emacs/site-lisp/site-start.el file might get overwritten…

--
Greetings

  Pete

A lot of us are working harder than we want, at things we don't like to do. Why? ...In order to afford the sort of existence we don't care to live.
				– Bradford Angier




^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-06-26 14:32 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-26  9:31 Ispell doesn't show all dictionaries Maikol
2013-06-26  9:45 ` Peter Dyballa
2013-06-26 11:37   ` Maikol
2013-06-26 11:45     ` Peter Dyballa
2013-06-26 11:52       ` Maikol
2013-06-26 12:09         ` Maikol
2013-06-26 14:32         ` Peter Dyballa

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).