From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: O G Newsgroups: gmane.emacs.bugs Subject: bug#61190: 28.2; ispell personal dictionary location for hunspell engine Date: Sat, 11 Feb 2023 13:16:21 -0500 Message-ID: References: <83fsbq3jf1.fsf@gnu.org> <83357q3fxv.fsf@gnu.org> <83edra12j9.fsf@gnu.org> <83a61x1sc3.fsf@gnu.org> <83v8k8i0pm.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000016d2bf05f4709d1d" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34801"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 61190@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Feb 11 19:17:10 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 1pQuQw-0008uC-OG for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 11 Feb 2023 19:17:10 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pQuQp-0008JI-Ul; Sat, 11 Feb 2023 13:17:03 -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 1pQuQo-0008JA-Av for bug-gnu-emacs@gnu.org; Sat, 11 Feb 2023 13:17:02 -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 1pQuQo-0003Bi-2H for bug-gnu-emacs@gnu.org; Sat, 11 Feb 2023 13:17:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pQuQn-0006ou-OW for bug-gnu-emacs@gnu.org; Sat, 11 Feb 2023 13:17:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: O G Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 11 Feb 2023 18:17: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.167613940326188 (code B ref 61190); Sat, 11 Feb 2023 18:17:01 +0000 Original-Received: (at 61190) by debbugs.gnu.org; 11 Feb 2023 18:16:43 +0000 Original-Received: from localhost ([127.0.0.1]:43154 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pQuQV-0006oJ-Ba for submit@debbugs.gnu.org; Sat, 11 Feb 2023 13:16:43 -0500 Original-Received: from mail-oi1-f177.google.com ([209.85.167.177]:38631) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pQuQQ-0006o0-7U for 61190@debbugs.gnu.org; Sat, 11 Feb 2023 13:16:41 -0500 Original-Received: by mail-oi1-f177.google.com with SMTP id 20so7122962oix.5 for <61190@debbugs.gnu.org>; Sat, 11 Feb 2023 10:16:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=kzG1//AWu0r0zJmfhG8AO9j++f9aGUnHNz4eI6kgT7E=; b=jG/DkQIf1qoryxBo8d+zTwdz959v7pGy5KIf/JMBQ5Lf6Dxzdgc0ux+W3KJGXfq5GW 262+xdOsLMkIysjLGnOj9VUBdPmAc5NWxXRofxzzxvBsxaMM0njWzqjCfnktZ85K3JL1 +ipsEjYqzKnJFXIvs0T+2eBEWbZ6Q9Cl9FTArR6NFZGlNcHw6/NVoTEKAJsaHRCVAWRP Z3KIaPNLF18qb0D/RqMSMf9Bw0CkX/I7SbetXiXOgJHOmfknPYBQ4C+Z6vSIgNwHBdrc k/l7yx89HtkG39w2Rze8uA+u5BOyrk/Oahp4kg2CxdFraTpmHslLMYMrgf4WpKbpFtJv G7+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=kzG1//AWu0r0zJmfhG8AO9j++f9aGUnHNz4eI6kgT7E=; b=TlXjGvX6U5XcMpTaZwr5W263YYMKTeZOf4lQ2UIAQwfAI/kXmNkOtHu/++dQCGc1Az 5+0YMKmYYmbsBUWdEOdBwBtpLD9E198Y03yOV4k97MHGbZfHvEUwZ73CKCZbVvL4cvMo +jOzThxGcFwzj58KSM1yCvdRBJJy9ToCjgvsAZQRQXy25ywt8wjnGMc27WYDOx7uyA0f IzrKvoQeSF8R8mjt/S8VXKo3kr852JKu3VlAS0LbM8oCyhUfL1Wygk8ZSwX4kG5FbO3R HUSJbLLLhwhtWEsQjwUMznlpqeXZKfPteL8v0X5M6a69/pyvWSlWWY12R0pOZ6Djd5UR UboA== X-Gm-Message-State: AO0yUKWE8iXvNU/sfKTDWUv5jQtNDxAPk3arSY08Tx4Zl2YMDNf7SZ3K T5MeV9hZK+F+iDtDDz25pid/yYx0RBlHJ6CY4DFJ9Z6Z X-Google-Smtp-Source: AK7set9QnqCgsAG83+iA+BQ81BkS09LxkMrO5aY+2cQhgyzSjpJgyRZZNMbyh1vrhsqVlO1GaEPas9tFVuhCZrsBhPg= X-Received: by 2002:a05:6808:1a89:b0:37d:8b34:fffd with SMTP id bm9-20020a0568081a8900b0037d8b34fffdmr52091oib.148.1676139392585; Sat, 11 Feb 2023 10:16:32 -0800 (PST) In-Reply-To: <83v8k8i0pm.fsf@gnu.org> 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:255342 Archived-At: --00000000000016d2bf05f4709d1d Content-Type: text/plain; charset="UTF-8" On Sat, Feb 11, 2023 at 12:14 PM Eli Zaretskii wrote: > > From: O G > > Date: Sat, 11 Feb 2023 12:07:36 -0500 > > Cc: 61190@debbugs.gnu.org > > > > > 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. > > > > Thanks for the detailed suggestions -- it now works. > > So I guess we can close this bug now? > Yes, with the caveat that it would be nice to document this somewhere. I opened up a bug report on the hunspell github repository about this issue and did not receive a response, so I'll respond to my own issue with this latest information. > > From what I can tell, the issue was the double backslashes not being > accepted > > in the file path for the hunspell personal dictionary. > > It should works either way. Maybe you didn't double every backslash? > Just double-checked my setup and indeed the problem reappears when I substitute double backslashes for all of the forward slashes. Also tried using the cygwin-style "/c/..." convention since everything is running (emacs + hunspell) inside an uptodate installation of msys2 using the mingw64 repository, and that does not work either. Only the "C:/Users/..." path is accepted apparently. Elsewhere within my init.el file the double backslash inside elisp strings works just fine for Windows file paths. --00000000000016d2bf05f4709d1d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
On Sat, Feb 11, 2023 at 12:14 PM Eli = Zaretskii <eliz@gnu.org> wrote:
> From: O G &l= t;opngid@gmail.com>
> Date: Sat, 11 Feb 2023 12:07:36 -0500
> Cc:
61190@d= ebbugs.gnu.org
>
>=C2=A0 >=C2=A0 emacs -Q
>=C2=A0 >=C2=A0 M-: (setq ispell-program-name "hunspell") R= ET
>=C2=A0 >=C2=A0 M-: (setq ispell-personal-dictionary "C:/Users/x= xxx/.hunspell_en_US") RET
>
>=C2=A0 > Now go to some word in *scratch* and type M-$.
>
>=C2=A0 > Then look with Process Explorer how Emacs invoked Hunspell.=
>
>=C2=A0 >When I do the above, I clearly see the "-p PDICT" = command-line
>=C2=A0 >arguments with which Emacs invokes Hunspell.=C2=A0 I made a = point of
>=C2=A0 >testing this on Windows with Emacs 28.2, which is what you h= ave, and
>=C2=A0 >it worked for me.
>
> Thanks for the detailed suggestions -- it now works.

So I guess we can close this bug now?

Y= es, with the caveat that it would be nice to document this somewhere.=C2=A0= I opened
up a bug report on the hunspell github repository about= this issue and did not=C2=A0
receive a response, so I'll res= pond to my own issue with this latest information.
=C2=A0
> From what I can tell, the issue was the double backslashes not being a= ccepted
> in the file path for the hunspell personal dictionary.

It should works either way.=C2=A0 Maybe you didn't double every backsla= sh?

Just double-checked my setup and in= deed the problem reappears when I substitute=C2=A0
double backsla= shes for all of the forward slashes.=C2=A0 Also tried using the cygwin-styl= e "/c/..."=C2=A0
convention since everything is running= (emacs=C2=A0+ hunspell) inside an uptodate installation
of msys2= using the mingw64 repository, and that does not work either.=C2=A0 Only th= e
"C:/Users/..." path is accepted apparently.
=C2=A0
Elsewhere within my init.el file the double backslash= inside elisp strings works just
fine for Windows file paths.=C2= =A0 =C2=A0
--00000000000016d2bf05f4709d1d--