GNU bug report logs -
#61190
28.2; ispell personal dictionary location for hunspell engine
Previous Next
Reported by: O G <opngid <at> gmail.com>
Date: Tue, 31 Jan 2023 00:54:01 UTC
Severity: normal
Found in version 28.2
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #20 received at 61190 <at> debbugs.gnu.org (full text, mbox):
> From: O G <opngid <at> gmail.com>
> Date: Wed, 1 Feb 2023 00:58:56 -0500
> Cc: 61190 <at> debbugs.gnu.org
>
> Did you veryfy that Hunspell is invoked by Emacs with the correct -p
> switch?
>
> I just checked process explorer and obtained the following command line args:
>
> c:\msys64\mingw64\bin\hunspell.exe -a "" -d en_US -i UTF-8
>
> This did not change regardless of what string I used for ispell-cmd-args in my emacs init file. I tried first "-p
> C:\\Users\\xxxx\\.hunspell_en_US," under the assumption that ispell would append this to the existing default
> set of cmd args, after creating an empty .hunspell_en_US file in my home directory, and then tried setting it
> to
>
> "-d en_US -i UTF-8 -p C:\\Users\\xxxx\\.hunspell_en_US"
>
> again to no avail.
Please be sure you are testing this correctly. Here's a step by step
procedure starting from "emacs -Q":
emacs -Q
M-: (setq ispell-program-name "hunspell") RET
M-: (setq ispell-personal-dictionary "C:/Users/xxxx/.hunspell_en_US") RET
Now go to some word in *scratch* and type M-$.
Then look with Process Explorer how Emacs invoked Hunspell.
When I do the above, I clearly see the "-p PDICT" command-line
arguments with which Emacs invokes Hunspell. I made a point of
testing this on Windows with Emacs 28.2, which is what you have, and
it worked for me.
If the above procedure works for you, please see what you are doing
differently in your "normal" Emacs sessions. In any case, using
ispell-cmd-args is not the recommended method; you should instead
customize the variable ispell-personal-dictionary, which is provided
for this purpose, and customize it before starting the spell-checker,
or restart the spell-checker with "M-x ispell-change-dictionary" after
customizing.
This bug report was last modified 2 years and 16 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.