From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#61190: 28.2; ispell personal dictionary location for hunspell engine Date: Wed, 01 Feb 2023 19:58:17 +0200 Organization: LINKOV.NET Message-ID: <86h6w5eose.fsf@mail.linkov.net> References: <83fsbq3jf1.fsf@gnu.org> <83357q3fxv.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28335"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) Cc: 61190@debbugs.gnu.org, opngid@gmail.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Feb 01 19:09:25 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pNHXw-0007HD-F5 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 01 Feb 2023 19:09:24 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pNHXd-0001c9-DZ; Wed, 01 Feb 2023 13:09:05 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pNHXb-0001ad-TL for bug-gnu-emacs@gnu.org; Wed, 01 Feb 2023 13:09:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pNHXa-0000FL-BQ for bug-gnu-emacs@gnu.org; Wed, 01 Feb 2023 13:09:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pNHXa-00067Y-6r for bug-gnu-emacs@gnu.org; Wed, 01 Feb 2023 13:09:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 01 Feb 2023 18:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61190 X-GNU-PR-Package: emacs Original-Received: via spool by 61190-submit@debbugs.gnu.org id=B61190.167527490623461 (code B ref 61190); Wed, 01 Feb 2023 18:09:02 +0000 Original-Received: (at 61190) by debbugs.gnu.org; 1 Feb 2023 18:08:26 +0000 Original-Received: from localhost ([127.0.0.1]:59797 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pNHX0-00066L-2N for submit@debbugs.gnu.org; Wed, 01 Feb 2023 13:08:26 -0500 Original-Received: from relay8-d.mail.gandi.net ([217.70.183.201]:60823) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pNHWx-000667-HL for 61190@debbugs.gnu.org; Wed, 01 Feb 2023 13:08:25 -0500 Original-Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id 5E7841BF207; Wed, 1 Feb 2023 18:08:15 +0000 (UTC) In-Reply-To: <83357q3fxv.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 31 Jan 2023 17:02:36 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:254594 Archived-At: > 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")