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: Wed, 1 Feb 2023 00:58:56 -0500 Message-ID: References: <83fsbq3jf1.fsf@gnu.org> <83357q3fxv.fsf@gnu.org> <83edra12j9.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000008505ae05f39d255d" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18614"; 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 Wed Feb 01 08:16:53 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 1pN7MS-0004jO-6Y for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 01 Feb 2023 08:16:52 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pN6YK-0006Er-KN; Wed, 01 Feb 2023 01:25:04 -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 1pN6YI-0006ET-QP for bug-gnu-emacs@gnu.org; Wed, 01 Feb 2023 01:25: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 1pN6YI-0004s7-Bt for bug-gnu-emacs@gnu.org; Wed, 01 Feb 2023 01:25:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pN6YH-00064x-PQ for bug-gnu-emacs@gnu.org; Wed, 01 Feb 2023 01:25: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: Wed, 01 Feb 2023 06:25: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.167523267123297 (code B ref 61190); Wed, 01 Feb 2023 06:25:01 +0000 Original-Received: (at 61190) by debbugs.gnu.org; 1 Feb 2023 06:24:31 +0000 Original-Received: from localhost ([127.0.0.1]:56206 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pN6Xn-00063g-7A for submit@debbugs.gnu.org; Wed, 01 Feb 2023 01:24:31 -0500 Original-Received: from mail-oi1-f182.google.com ([209.85.167.182]:44854) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pN6Xh-00063D-Rh for 61190@debbugs.gnu.org; Wed, 01 Feb 2023 01:24:29 -0500 Original-Received: by mail-oi1-f182.google.com with SMTP id bj22so5810274oib.11 for <61190@debbugs.gnu.org>; Tue, 31 Jan 2023 22:24:25 -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=nJF88xv+weRp11XdIf1UOGQOxcLTSHzrzi8UPkCadZg=; b=bStA0RbE2kiWpbJDRnf1U6WbBBHCOV40AhO3hTREk54jfcKNjUcOa04qhi00cyn1+q NfwpmmX7Xadiiw+oWvh3hScHlrxm+9eT/KhN+68Z51Y0JUfXYpBMYUpYE/5NGuCsdg6S sOlpaC51R3TfhGnbrcluqWqF5nXx7YX+XFNsqhUHFdUtHY85sr35pzQ6uE6WAu1wNrE/ JfcVoPL7K0xxHXLMAyqcOWt466iJ93s2n8AgorNdKuiu/Qco5Y2mfVu11VKDpp+OKVze +He71kSdi8HmLKn2UcGQdUk34m6Oi5oTHAn+FNuLHwnBxkpPHbh2QcTGoOoCmIkxZuSx 0sDg== 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=nJF88xv+weRp11XdIf1UOGQOxcLTSHzrzi8UPkCadZg=; b=QEFB9VjE93TcXCajt9/QBC3y3PqAWDwcVK0nEUzQNo3cHYd0a8dVG+OGSnrUo1AhzO rlmsHvnQbMk1uyum6vQSk9rhi8GHpxLSbKfJg/3qk1e/r/UKjvJHxT/LcZPzY/ObaC2K lYl3opeLKcdv4fkXEyPP2g8yvMAUydINXW2ExxA45duFW5LA16otBG7EuzR+/6E9gTB1 06pHPDDxW3fxGbrSW01MIdwxnWIpBXisIw31UK0PA8Olhr3OUlRinIYUb+JsCqE23fnz 0OrGV1IgeHWjjH1cirzC6jYtIeVwTy/CDkO53x0XorbOJmZwVjLC23hQuxx+6Z52GDh4 kkYw== X-Gm-Message-State: AO0yUKU40keQomDsf3Td3E+J39nufC7gKnTRXfmkTAmOAXzWhYElXNy7 JkwDTDHTfU21fAllZbn9y9TuC6+nNelFTyH3cLT/F8Wz9jM= X-Google-Smtp-Source: AK7set//jj4aaYENCH1F39nPlWsUyfQHBxadtGjlVd4aHui+TL8y9jTAV7myW13Lp1UvN63Dz/KOpqkyLiAxdSeusJE= X-Received: by 2002:a05:6808:22a3:b0:374:3688:36f7 with SMTP id bo35-20020a05680822a300b00374368836f7mr69604oib.277.1675231148441; Tue, 31 Jan 2023 21:59:08 -0800 (PST) In-Reply-To: <83edra12j9.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:254563 Archived-At: --0000000000008505ae05f39d255d Content-Type: text/plain; charset="UTF-8" On Tue, Jan 31, 2023 at 10:35 PM Eli Zaretskii wrote: > [Please use Reply All to reply, to keep the bug tracker CC'ed.] > > > > 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 time around I tested by setting the ispell-local-dictionary > variable, and then the ispell-cmd-args variable, > > by using in each instance the escaped backslash form of the absolute > file path > > (C:\\Users\xxxx\.hunspell_en_US), which I created beforehand as an empty > file. > ^^^^^^^^^^^^^^^^^^^^^^ If the above is the literal value you tried, it is again incorrect: > each backslash should be doubled. If you did double them all, or used forward slashes, Indeed I had doubled them in my emacs init file and used backslashes ... that was a typo above. > then there's a different bug in your version of > Hunspell; it worked for me once I understood the problem. > > 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. --0000000000008505ae05f39d255d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
On Tue, Jan 31, 2023 at 10:35 PM Eli = Zaretskii <eliz@gnu.org> wrote:
[Please use Reply= All to reply, to keep the bug tracker CC'ed.]

> > This is arguably a bug in Hunspell, but a workaround is to cr= eate an
> > empty file at the location where you want the personal dictionary= to
> > be, and then restart the speller.

> This time around I = tested by setting the ispell-local-dictionary variable, and then the ispell= -cmd-args variable,
> by using in each instance the escaped backslash form of the absolute f= ile path
> (C:\\Users\xxxx\.hunspell_en_US), which I created beforehand as an emp= ty file.
=C2=A0 =C2=A0^^^^^^^^^^^^^^^^^^^^^^
If the above is the literal value you tried, it is a= gain incorrect:
each backslash should be doubled.=C2=A0 If you did double them all, or used=
forward slashes,

Indeed I had doubled them= in my emacs init file and used backslashes ... that was a typo above.
=C2=A0=C2=A0
t= hen there's a different bug in your version of
Hunspell; it worked for me once I understood the problem.

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 is= pell-cmd-args in my emacs init file.=C2=A0 I tried first "-p C:\\Users= \\xxxx\\.hunspell_en_US," under the assumption that ispell would appen= d this to the existing default set of cmd args, after creating an empty .hu= nspell_en_US file in my home directory, and then tried setting it to
<= div>
"-d en_US -i UTF-8 -p C:\\Users\\xxxx\\.hunspell_en= _US"

again to no avail.
=C2=A0 =C2= =A0
--0000000000008505ae05f39d255d--