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 14:30:04 +0200 Message-ID: <83a61x1sc3.fsf@gnu.org> References: <83fsbq3jf1.fsf@gnu.org> <83357q3fxv.fsf@gnu.org> <83edra12j9.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16847"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 61190@debbugs.gnu.org To: O G Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Feb 01 13:31:24 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 1pNCGp-0004CQ-Fq for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 01 Feb 2023 13:31:23 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pNCGX-0000Hi-MU; Wed, 01 Feb 2023 07:31: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 1pNCGU-0000EH-Ni for bug-gnu-emacs@gnu.org; Wed, 01 Feb 2023 07:31: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 1pNCGU-0007tI-EF for bug-gnu-emacs@gnu.org; Wed, 01 Feb 2023 07:31:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pNCGU-0004kU-0b for bug-gnu-emacs@gnu.org; Wed, 01 Feb 2023 07:31:02 -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 12:31: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.167525462012887 (code B ref 61190); Wed, 01 Feb 2023 12:31:01 +0000 Original-Received: (at 61190) by debbugs.gnu.org; 1 Feb 2023 12:30:20 +0000 Original-Received: from localhost ([127.0.0.1]:56794 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pNCFo-0003KZ-Cg for submit@debbugs.gnu.org; Wed, 01 Feb 2023 07:30:20 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:43506) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pNCFj-0002jc-Fs for 61190@debbugs.gnu.org; Wed, 01 Feb 2023 07:30:19 -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 1pNCFc-0007Y1-VK; Wed, 01 Feb 2023 07:30:08 -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=UNE5KLuPiA77QPqIRVyN5Ub6a9wZIfJMUL/eSBxtbQo=; b=BReLGnBdPSYt A7eswaCjc56K53V3wB8eQd4dMjmb5FCjmXeFZ9l9zBhOtfTx7pY1w9XGEywkUKIuO4S2kLIobff3w hHZU0yLA6qSRcqCJ04xrmmh0KkAQ+v5Hrb4GAfL2eNqniH7WkJsjqNChzSn4D6IcH42X9sVv1YT7I jF5LwM3rwMu5qUxUsAmnUGzlOHd7tBCv/aDvswCckNwaGl4HTpqBHDtg64tPiJGV6o4CoX3P1XurW EMTbLZwOt1PToi6uCf42IqNIsDCuOmYOap+9PlTO+S1MfSjQvQGmAs002QyddRelMo3FffIKMKrBT 5yC6WmhWIssdKj3bShoXpQ==; 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 1pNCFa-0002Yk-QM; Wed, 01 Feb 2023 07:30:07 -0500 In-Reply-To: (message from O G on Wed, 1 Feb 2023 00:58:56 -0500) 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:254573 Archived-At: > From: O G > Date: Wed, 1 Feb 2023 00:58:56 -0500 > Cc: 61190@debbugs.gnu.org > > 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. Please be sure you are testing this correctly. Here's a step by step procedure starting from "emacs -Q": 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. If the above procedure works for you, please see what you are doing differently in your "normal" Emacs sessions. In any case, using ispell-cmd-args is not the recommended method; you should instead customize the variable ispell-personal-dictionary, which is provided for this purpose, and customize it before starting the spell-checker, or restart the spell-checker with "M-x ispell-change-dictionary" after customizing.