From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#61190: 28.2; ispell personal dictionary location for hunspell engine Date: Wed, 01 Feb 2023 20:31:23 +0200 Message-ID: <83edr9z18k.fsf@gnu.org> References: <83fsbq3jf1.fsf@gnu.org> <83357q3fxv.fsf@gnu.org> <86h6w5eose.fsf@mail.linkov.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28933"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 61190@debbugs.gnu.org, opngid@gmail.com To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Feb 01 19:32:59 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 1pNHul-0007Mb-G8 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 01 Feb 2023 19:32:59 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pNHuG-00027A-P4; Wed, 01 Feb 2023 13:32:28 -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 1pNHtr-00024P-6l for bug-gnu-emacs@gnu.org; Wed, 01 Feb 2023 13:32:17 -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 1pNHtp-0007aB-Ug for bug-gnu-emacs@gnu.org; Wed, 01 Feb 2023 13:32:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pNHtp-0006lu-Qu for bug-gnu-emacs@gnu.org; Wed, 01 Feb 2023 13:32:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 01 Feb 2023 18:32:01 +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.167527629425992 (code B ref 61190); Wed, 01 Feb 2023 18:32:01 +0000 Original-Received: (at 61190) by debbugs.gnu.org; 1 Feb 2023 18:31:34 +0000 Original-Received: from localhost ([127.0.0.1]:59851 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pNHtN-0006l9-Ta for submit@debbugs.gnu.org; Wed, 01 Feb 2023 13:31:34 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:57696) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pNHtL-0006kv-LU for 61190@debbugs.gnu.org; Wed, 01 Feb 2023 13:31:32 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pNHtE-0007VP-Sw; Wed, 01 Feb 2023 13:31:26 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=fZS1hLsmsy7dWb1ipog5Fs3eWeLcnIG4Fp8DLncDTgw=; b=CflAleyuwnpU gJLokF5cF4Uq9gxeAnTYsgPazHfo5Vo5Thjb6bQgAC+b/2I/zAv/5IH5m9gkIl2c/36EV9Yf9cIiw Dcd0Oxq50nMR2ZnwaHM/O72ZYzzPeNUHbbIYqsc5cANso+/o3AifJkA4anrh6HOCiWnQzn8VFhH/J d499Yt3KumarJMdCcN1TIcOr29jPK85Zltj2+COPBKBFNElUXtEcNL7na85erI8GFYCJ1Wal3Z0Zs lhKr/zIxtiejxhNkiBCsFfYh1ocmIfWeOW4BPd2LNhQ8mPmKaU/gn1PD/dIqqoOBo+VFYvMnO1L7b cEvzXq7cDW7dAaHPI1iQFw==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pNHtD-000777-L9; Wed, 01 Feb 2023 13:31:24 -0500 In-Reply-To: <86h6w5eose.fsf@mail.linkov.net> (message from Juri Linkov on Wed, 01 Feb 2023 19:58:17 +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:254599 Archived-At: > From: Juri Linkov > Cc: opngid@gmail.com, 61190@debbugs.gnu.org > Date: Wed, 01 Feb 2023 19:58:17 +0200 > > > 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") Yes, the code which does that in Hunspell is not Windows-specific.