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
View this message in rfc822 format
> I looked into the Hunspell's sources, and I think I know why this
> happens. Hunspell has a peculiar logic when looking for the personal
> dictionary. The outcome of that peculiar logic is that if Hunspell is
> invoked with "-p PDICT" command-line argument, and PDICT is an
> absolute file name, that file must already exist, or else Hunspell
> will decide it cannot use it. And Emacs always invokes Hunspell with
> an absolute file name of the personal dictionary.
>
> This is arguably a bug in Hunspell, but a workaround is to create an
> empty file at the location where you want the personal dictionary to
> be, and then restart the speller.
This bug exists even on GNU/Linux, so requires such customization:
(unless (file-exists-p "~/.hunspell")
(shell-command "touch ~/.hunspell"))
(setq ispell-personal-dictionary "~/.hunspell")
This bug report was last modified 2 years and 15 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.