bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#47456: 27.1; emacs hangs using aspell in auctex


From: Brian Elmegaard
Subject: bug#47456: 27.1; emacs hangs using aspell in auctex
Date: Tue, 30 Mar 2021 13:27:30 +0000

Thank you for the effort, Eli.
This does work.

Do you see this as a bug in either MSYS hunspell, ispell.el or just a small 
task for the user to do when updating the dictionaries?
I see that the hunspell on sourceforge does have a default.dic included.

(setenv "DICTIONARY" "en_US") 
seems to be a solution that would work also?

Brian

-----Original Message-----
From: Eli Zaretskii <eliz@gnu.org> 
Sent: 30. marts 2021 15:02
To: Brian Elmegaard <be@mek.dtu.dk>
Cc: 47456@debbugs.gnu.org
Subject: Re: bug#47456: 27.1; emacs hangs using aspell in auctex

> From: Brian Elmegaard <be@mek.dtu.dk>
> CC: "47456@debbugs.gnu.org" <47456@debbugs.gnu.org>
> Date: Tue, 30 Mar 2021 12:50:59 +0000
> 
> Without DICTIONARY set I get:
> SEARCH PATH:
> .;c:/msys64/mingw64/bin/;c:/msys64/mingw64/share/hunspell;c:/msys64/mi
> ngw64/share/myspell;c:/msys64/mingw64/share/myspell/dicts;c:/msys64;%U
> SERPROFILE%/Application Data/OpenOffice.org 
> 2/user/wordbook;c:/msys64/mingw64/share/dict/ooo;
> AVAILABLE DICTIONARIES (path is not mandatory for -d option):
> c:/msys64/mingw64/share/hunspell/en_AG
> c:/msys64/mingw64/share/hunspell/en_AU-large
> c:/msys64/mingw64/share/hunspell/en_AU
> c:/msys64/mingw64/share/hunspell/en_BS
> c:/msys64/mingw64/share/hunspell/en_BW
> c:/msys64/mingw64/share/hunspell/en_BZ
> c:/msys64/mingw64/share/hunspell/en_CA
> c:/msys64/mingw64/share/hunspell/en_DK
> c:/msys64/mingw64/share/hunspell/en_GB
> c:/msys64/mingw64/share/hunspell/en_GH
> c:/msys64/mingw64/share/hunspell/en_HK
> c:/msys64/mingw64/share/hunspell/en_IE
> c:/msys64/mingw64/share/hunspell/en_IN
> c:/msys64/mingw64/share/hunspell/en_JM
> c:/msys64/mingw64/share/hunspell/en_NA
> c:/msys64/mingw64/share/hunspell/en_NG
> c:/msys64/mingw64/share/hunspell/en_NZ
> c:/msys64/mingw64/share/hunspell/en_PH
> c:/msys64/mingw64/share/hunspell/en_SG
> c:/msys64/mingw64/share/hunspell/en_TT
> c:/msys64/mingw64/share/hunspell/en_US-large
> c:/msys64/mingw64/share/hunspell/en_US
> c:/msys64/mingw64/share/hunspell/en_ZA
> c:/msys64/mingw64/share/hunspell/en_ZW
> c:/msys64/mingw64/share/myspell/dicts/en_AG
> c:/msys64/mingw64/share/myspell/dicts/en_AU-large
> c:/msys64/mingw64/share/myspell/dicts/en_AU
> c:/msys64/mingw64/share/myspell/dicts/en_BS
> c:/msys64/mingw64/share/myspell/dicts/en_BW
> c:/msys64/mingw64/share/myspell/dicts/en_BZ
> c:/msys64/mingw64/share/myspell/dicts/en_CA
> c:/msys64/mingw64/share/myspell/dicts/en_DK
> c:/msys64/mingw64/share/myspell/dicts/en_GB
> c:/msys64/mingw64/share/myspell/dicts/en_GH
> c:/msys64/mingw64/share/myspell/dicts/en_HK
> c:/msys64/mingw64/share/myspell/dicts/en_IE
> c:/msys64/mingw64/share/myspell/dicts/en_IN
> c:/msys64/mingw64/share/myspell/dicts/en_JM
> c:/msys64/mingw64/share/myspell/dicts/en_NA
> c:/msys64/mingw64/share/myspell/dicts/en_NG
> c:/msys64/mingw64/share/myspell/dicts/en_NZ
> c:/msys64/mingw64/share/myspell/dicts/en_PH
> c:/msys64/mingw64/share/myspell/dicts/en_SG
> c:/msys64/mingw64/share/myspell/dicts/en_TT
> c:/msys64/mingw64/share/myspell/dicts/en_US-large
> c:/msys64/mingw64/share/myspell/dicts/en_US
> c:/msys64/mingw64/share/myspell/dicts/en_ZA
> c:/msys64/mingw64/share/myspell/dicts/en_ZW
> Can't open affix or dictionary files for dictionary named "default".
  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
That's your problem, right there.  By default, Hunspell looks for a dictionary 
called "default".  If you always use the en_US dictionary by default, simply 
copy en_US.dic to default.dic and en_US.aff to default.aff (in the same 
directory), and then the problem will go away.

Another measure that I would recommend is to copy en_US.* into the 
corresponding ENU.* files.  That is because Windows locale names are different 
from Posix ones: what is called en_US on Posix platforms is called ENU on 
Windows.  When Hunspell is run by Emacs, Emacs by default instructs it to load 
the dictionary that corresponds to the locale, or "default" if the 
locale-specific name fails, and so ENU.dic will also work.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]