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: follow-up on ispell-personal-dictionary issue for hunspell Date: Sun, 2 Jul 2023 15:19:13 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000007aacc505ff85ed13" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8655"; mail-complaints-to="usenet@ciao.gmane.io" To: 61190@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jul 02 21:20:22 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 1qG2cQ-000244-1U for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 02 Jul 2023 21:20:22 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qG2cD-0005MT-06; Sun, 02 Jul 2023 15:20:09 -0400 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 1qG2c6-0005M8-VG for bug-gnu-emacs@gnu.org; Sun, 02 Jul 2023 15:20:02 -0400 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 1qG2c6-0000x2-MP for bug-gnu-emacs@gnu.org; Sun, 02 Jul 2023 15:20:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qG2c6-00075C-Gs for bug-gnu-emacs@gnu.org; Sun, 02 Jul 2023 15:20:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: O G Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 02 Jul 2023 19:20: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.168832557227187 (code B ref 61190); Sun, 02 Jul 2023 19:20:02 +0000 Original-Received: (at 61190) by debbugs.gnu.org; 2 Jul 2023 19:19:32 +0000 Original-Received: from localhost ([127.0.0.1]:32811 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qG2bb-00074Q-H7 for submit@debbugs.gnu.org; Sun, 02 Jul 2023 15:19:31 -0400 Original-Received: from mail-oi1-f176.google.com ([209.85.167.176]:56551) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qG2bZ-00074B-CH for 61190@debbugs.gnu.org; Sun, 02 Jul 2023 15:19:30 -0400 Original-Received: by mail-oi1-f176.google.com with SMTP id 5614622812f47-3a337ddff16so2591105b6e.0 for <61190@debbugs.gnu.org>; Sun, 02 Jul 2023 12:19:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1688325563; x=1690917563; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=EboSGh2rhmyXlmH/FnNHfVFwxb4pSCtpicD+K6uaTRg=; b=blume37kIxfmBi5RNp2K3hStjkZ6QhH4ksLVU2nfGE0o2IFpshDxfzmnK4rx4M0M7v 7aXZNSIlYsiXoVsF8WwEwoonYZDT5fUmWrN6bw/gUayk/jgYHgmDx/GCR9gcIwqfpq4h Wc3Xvzb+YO6YoRHsXMJOUStpeyrP8apYNoBqYdQyC+ImtwPamrJKwwfEA4xCTW/5zCjA Dz+YwrfSHJUt9ypiMAn1iENFQuK7+Z0cD027WufFqYJLHoY8zV4LYvPeB191G5hdMUpQ e8orXLuvFYX2AG7Vef1mEtCeG7Arx3ccjOqmSuEak+o9ddhzXoLfo5LxFWu8v+LmhRS7 3uGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688325563; x=1690917563; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=EboSGh2rhmyXlmH/FnNHfVFwxb4pSCtpicD+K6uaTRg=; b=Zbn6OvNYKciZt8ofInuYi0RXfBzm/0anGsDbRPeYgUoxnah+W/p6cNK1mHaO9iKjNc ETD37cCQBsvdvdsDuAr+ETfwp7ZzV5VThH+VGJmVRs03vmsTQYKB5vNFfPbn+b5X6/IT DVxwKVu8NR8tS1FERIgpc4HCcoe/qlWAvqxjT0WiVGpDs+xwEkl0dYm5dz5XllE73CHJ kaez6u1VBsysMyy6SHynvJeV6798HYVHjsuBtW/n6L9i7B1icNIgmXs2WjMIWZCvNWRX YEHOmEmLrIEuXFmZq/n6S/REQjNjtYERtzkIQ9M5cGiNPVAD0Tk0DjUdY/CrmxgKzZwa jUgQ== X-Gm-Message-State: AC+VfDz5IfUV58TOg4k/RoXU+mkoax5IjZ5aH0YiRHQU3yttmhQG22N5 gMq14lTngZD1SRHZalt+mRbngJgFoCICpVtEMc0xG4AnyxQ= X-Google-Smtp-Source: ACHHUZ5eycTQi1J37u41l5GCAxaDhitoecdV+9cmBbcZzzSPEY+umPw5VqP4q2Au+FxMCR/22CmE/f9JOjGeKHOQrvQ= X-Received: by 2002:a05:6808:23c9:b0:3a3:7977:8995 with SMTP id bq9-20020a05680823c900b003a379778995mr8989453oib.47.1688325563524; Sun, 02 Jul 2023 12:19:23 -0700 (PDT) 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:264498 Archived-At: --0000000000007aacc505ff85ed13 Content-Type: text/plain; charset="UTF-8" > Okay, the double backslash works with emacs -Q on my system as well. > Back in my customizations, it looks like I had not rechecked by setting the > ispell-personal-dictionary variable > ... was still using the ispell-cmd-args approach unfortunately. So it looks > like the latter is the issue, because > everything works now per your suggested settings. > I had originally tried using ispell-personal-dictionary before turning to > ispell-cmd-args and now believe that I > may have failed to touch the .hunspell_en_US file first (a known quirk) while > I was testing the double > backslashes among other ways of specifying the file path. > So it's safe to close the bug now. I have more information now regarding this issue, which as it turns out was not related to my testing the ispell-cmd-args approach or because I had failed to touch the .hunspell_en_US file per the known quirk on windows. In my init.el file, after the lines: (setq ispell-local-dictionary "en_US") (setq ispell-personal-dictionary "C:\\Users\\...\\test-personal-dictionary") ; the personal dictionary file has to exist, otherwise hunspell will ; silently fail to use it (unless (file-exists-p ispell-personal-dictionary) (write-region "" nil ispell-personal-dictionary nil 0)) I had the following line: (use-package flyspell :ensure t) When I removed this line, flyspell started to recognize the custom ispell-personal-dictionary that I had specified. Since flyspell is now built into emacs, I'm a little unclear on why reloading the package without changing any other options would block an underlying ispell setting. This also explains why everything worked just fine when I tested setting a custom location for the personal dictionary using emacs -Q. --0000000000007aacc505ff85ed13 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
> Okay, the double backslash works with emacs -Q on my = system as well. =C2=A0

> Back in my customizations, it looks like= I had not rechecked by setting the
> ispell-personal-dictionary vari= able
> ... was still using the ispell-cmd-args approach unfortunately= .=C2=A0 So it looks
> like the latter is the issue, because
> e= verything works now per your suggested settings.

> I had original= ly tried using ispell-personal-dictionary before turning to
> ispell-= cmd-args and now believe that I
> may have failed to touch the .hunsp= ell_en_US file first (a known quirk) while
> I was testing the double=
> backslashes among other ways of specifying the file path.

&= gt; So it's safe to close the bug now.

I have more information n= ow regarding this issue, which as it turns out was
not related to my te= sting the ispell-cmd-args approach or because=C2=A0
I had failed = to touch the .hunspell_en_US file per the known quirk on windows.=C2=A0=C2= =A0

In my init.el file, after the lines:

(setq ispell-local-dictionary "en_US")
(setq i= spell-personal-dictionary "C:\\Users\\...\\test-personal-dictionary&qu= ot;)
; the personal dictionary file has to exist, otherwise hunspell wil= l
; silently fail to use it
(unless (file-exists-p ispell-personal-di= ctionary)
=C2=A0 (write-region "" nil ispell-personal-dictiona= ry nil 0))

I had the following line:

(use-package flyspell
=C2=A0 :ensure t)

When I removed this line, flyspell started to recognize the= =C2=A0
custom ispell-personal-dictionary that I had specified.

Since flyspell is now built into emacs, I'm a li= ttle unclear on=C2=A0
why reloading the package without changing = any other options
would block an underlying ispell setting.
=

This also explains why everything worked just fine when= I tested
setting a custom location for the personal dictionary u= sing emacs -Q.
--0000000000007aacc505ff85ed13--