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: Mon, 30 Jan 2023 19:53:19 -0500 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000aabfbf05f384c275" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11189"; 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 Tue Jan 31 01:54:12 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 1pMeua-0002iu-Br for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 31 Jan 2023 01:54:12 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pMeuS-0000u2-OF; Mon, 30 Jan 2023 19:54: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 1pMeuQ-0000tf-BN for bug-gnu-emacs@gnu.org; Mon, 30 Jan 2023 19:54: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 1pMeuQ-0007bh-3m for bug-gnu-emacs@gnu.org; Mon, 30 Jan 2023 19:54:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pMeuP-0004YF-PZ for bug-gnu-emacs@gnu.org; Mon, 30 Jan 2023 19:54: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: Tue, 31 Jan 2023 00:54:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 61190 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.167512641817461 (code B ref -1); Tue, 31 Jan 2023 00:54:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 31 Jan 2023 00:53:38 +0000 Original-Received: from localhost ([127.0.0.1]:50967 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pMeu1-0004XY-At for submit@debbugs.gnu.org; Mon, 30 Jan 2023 19:53:38 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:60604) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pMetz-0004XO-8T for submit@debbugs.gnu.org; Mon, 30 Jan 2023 19:53:36 -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 1pMetz-0000rI-1W for bug-gnu-emacs@gnu.org; Mon, 30 Jan 2023 19:53:35 -0500 Original-Received: from mail-oa1-x31.google.com ([2001:4860:4864:20::31]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pMetw-0007ao-Ku for bug-gnu-emacs@gnu.org; Mon, 30 Jan 2023 19:53:34 -0500 Original-Received: by mail-oa1-x31.google.com with SMTP id 586e51a60fabf-1631b928691so17456639fac.11 for ; Mon, 30 Jan 2023 16:53:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=xWV/q0m/qwQg5mEtbcII+13z6RSud70RnkZzTItPNEM=; b=ZDo782HlFXFTBF9mcHyCZ/iiyUe4k7JoUMvZePoBPjK/IT3oYw86F1njAyrPhoeGBm DJ9ug7GE8NHyNvKvYspZz8uWmrpPq0c+RjMsH8JqW5ykNUjn1mPSlCgMllyC9fyzdir8 TDB60qiNIof6xRtokDh78T2qvHPLgdqs3bVLOiSy3YmM0gsllMD8ZgPlFib5e/WyCved ecraUPT5OUaueCSdSXkB2aFJUewX3kvSzyFfKg3/JiJanSNpKTmZISWHfaw0sjec+uAu wbLm85rXdmf9+8hIHX+qEqdz5IdfRLJyEfBVJey4X2gor6btLGFYDlmvDxAj4/ji4K85 /0tw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=xWV/q0m/qwQg5mEtbcII+13z6RSud70RnkZzTItPNEM=; b=x9ZieeRLQiEh7hwUT8zzY7g2VfHQ8ZBN/7cvSHtXaHX0/d5PD+exCB0hBhK4+Qk754 HQ9wJTEU522jpMv5Yl8jVLgqOLtIj3ZRrOA/ZZvgeLf04EeNnxLDNIfLnHhw7UVN+rZf OzXf3toCX1KgfTViaF1xj+bfJXUy86QprY+qut5P/w7oMNyeoJHsrM09tpd2drj3C3UQ 9YKl5Fqiy6o6Sm7f+wzFAgA0c8IrSPV/kWbMJmkk2nJihrp3qrcC9ujDsOR/PIwyrz3I StTWVwH9j5cxdefcikrJ1Bt0svDhAIkmbiVw38fBOnArEUSwKEptSSich2nguTvMakoS 4fzw== X-Gm-Message-State: AFqh2krhjOcsnLSGCF7oJYD+BraC6gA2sCiXpSqstlG4IOwBoYfOvivl sxSor+o1Fh+vvH9iGbqN70PEoYmkBRUj3hc4lQNJxqM1Uv0= X-Google-Smtp-Source: AMrXdXsrHGhPrh6YjWGe8NUrdD9jie0iyPYO8rIwOvX/Gi+aZVYbHusJw2fTLoUXF/1/HnEOi9C4o8JaDAeyfkJhyi4= X-Received: by 2002:a05:6870:4151:b0:15e:efa9:9754 with SMTP id r17-20020a056870415100b0015eefa99754mr4440078oad.148.1675126410754; Mon, 30 Jan 2023 16:53:30 -0800 (PST) Received-SPF: pass client-ip=2001:4860:4864:20::31; envelope-from=opngid@gmail.com; helo=mail-oa1-x31.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:254496 Archived-At: --000000000000aabfbf05f384c275 Content-Type: text/plain; charset="UTF-8" The ispell package in Emacs is not using the user-specified location of the personal dictionary for hunspell. In particular, neither of these two settings are being respected: (setq ispell-personal-directory "/c/Users/xxxx/.hunspell_en_US") (setq ispell-cmd-args "-p /c/Users/xxxx/.hunspell_en_US") Instead, it appears that ispell is hardwired to use the file %USERPROFILE%hunspell_en_US regardless of whether or not the user has specified another choice for their personal dictionary. Note that a file named %USERPROFILE%hunspell_en_US is being created at the save prompt when adding a new spelling regardless of whether or not a file named .hunspell_en_US already exists in the user's home directory (the default file path for a personal directory) and that the Windows macro %USERPROFILE% is not being properly expanded either (so it becomes part of the dictionary name in unexpanded form). Hunspell is the latest version (1.7.2) installed from the MINGW64 repository in the MYSYS2 project. It is otherwise working just fine with Emacs using the following two settings: (setq ispell-program-name "hunspell") (setq ispell-local-dictionary "en_US") Note that the HOME variable is set in my Emacs init file and points to C:/Users/xxxx/ A comment in this stack exchange post suggests others may be experiencing this issue as well: https://emacs.stackexchange.com/questions/58844/where-is-personal-dictionary-for-ispell-located --------------------------------------------------------------- In GNU Emacs 28.2 (build 2, x86_64-w64-mingw32) of 2022-10-11 built on fv-az365-328 Repository revision: b35f9af313a5d5c42988eb5a7751209b4234a67e Repository branch: master Windowing system distributor 'Microsoft Corp.', version 10.0.22621 System Description: Microsoft Windows 10 Pro (v10.0.2009.22621.1105) Configured using: 'configure --prefix=/mingw64 --host=x86_64-w64-mingw32 --build=x86_64-w64-mingw32 --with-modules --without-dbus --without-compress-install --with-native-compilation 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe' CPPFLAGS=-D__USE_MINGW_ANSI_STDIO=1 LDFLAGS=-pipe' Configured features: ACL GIF GMP GNUTLS HARFBUZZ JPEG JSON LIBXML2 MODULES NATIVE_COMP NOTIFY W32NOTIFY PDUMPER PNG RSVG SOUND THREADS TIFF TOOLKIT_SCROLL_BARS XPM ZLIB Important settings: value of $LANG: en_US locale-coding-system: cp1252 Major mode: Lisp Interaction Minor modes in effect: TeX-PDF-mode: t TeX-source-correlate-mode: t global-corfu-mode: t corfu-mode: t all-the-icons-completion-mode: t marginalia-mode: t savehist-mode: t vertico-multiform-mode: t vertico-mode: t override-global-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t global-prettify-symbols-mode: t prettify-symbols-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t Load-path shadows: c:/Users/xxxx/.emacs.d/elpa/hydra-0.15.0/lv hides c:/Users/xxxx/.emacs.d/elpa/lv-20200507.1518/lv Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs rfc822 mml mml-sec epa derived gnus-util rmail rmail-loaddefs text-property-search mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mule-util time-date aide tex crm texmathp le-thesaurus request mailheader autorevert filenotify mail-utils foldout noutline outline corfu orderless all-the-icons-completion all-the-icons all-the-icons-faces data-material data-weathericons data-octicons data-fileicons data-faicons data-alltheicons marginalia compat compat-29 savehist vertico-multiform vertico-posframe posframe vertico use-package-bind-key bind-key easy-mmode ryo-modal org-macs format-spec avy expand-region text-mode-expansions er-basic-expansions thingatpt expand-region-core expand-region-custom two-column hydra lv disable-mouse edmacro kmacro smart-mode-line-powerline-theme powerline comp comp-cstr warnings rx powerline-separators ring color powerline-themes smart-mode-line advice rich-minority zenburn-theme loop ht s dash cl-extra help-mode use-package-ensure use-package-core finder-inf cus-edit pp cus-load wid-edit server tex-site epg rfc6068 epg-config gnu-elpa-keyring-update info package browse-url url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util mailcap url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json subr-x map url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib iso-transl tooltip eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel dos-w32 ls-lisp disp-table term/w32-win w32-win w32-vars term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads w32notify w32 multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 398612 190497) (symbols 48 23253 131) (strings 32 115775 27414) (string-bytes 1 3416306) (vectors 16 35445) (vector-slots 8 732330 252268) (floats 8 565 625) (intervals 56 363 174) (buffers 992 11)) --000000000000aabfbf05f384c275 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
The ispell package in Emacs is not using the user-specifie= d location of
the personal dictionary for hunspell.

In particular= , neither of these two settings are being respected:

(setq ispell-pe= rsonal-directory "/c/Users/xxxx/.hunspell_en_US")
(setq ispell= -cmd-args "-p /c/Users/xxxx/.hunspell_en_US")

Instead, it = appears that ispell is hardwired to use the file
%USERPROFILE%hunspell_e= n_US regardless of whether or not the user has
specified another choice = for their personal dictionary.

Note that a file named %USERPROFILE%h= unspell_en_US is being created at
the save prompt when adding a new spel= ling regardless of whether or not
a file named .hunspell_en_US already e= xists in the user's home directory
(the default file path for a pers= onal directory) and that the Windows
macro %USERPROFILE% is not being pr= operly expanded either (so it becomes
part of the dictionary name in une= xpanded form).

Hunspell is the latest version (1.7.2) installed from= the MINGW64 repository
in the MYSYS2 project.=C2=A0 It is otherwise wor= king just fine with Emacs
using the following two settings:

(setq= ispell-program-name "hunspell")
(setq ispell-local-dictionary= "en_US")

Note that the HOME variable is set in my Emacs i= nit file and points
to C:/Users/xxxx/

A comment in this stack exc= hange post suggests others may be
experiencing this issue as well:
https://emacs.stackexchange.com/question= s/58844/where-is-personal-dictionary-for-ispell-located

--------= -------------------------------------------------------

In GNU Emacs= 28.2 (build 2, x86_64-w64-mingw32)
=C2=A0of 2022-10-11 built on fv-az36= 5-328
Repository revision: b35f9af313a5d5c42988eb5a7751209b4234a67e
R= epository branch: master
Windowing system distributor 'Microsoft Cor= p.', version 10.0.22621
System Description: Microsoft Windows 10 Pro= (v10.0.2009.22621.1105)

Configured using:
=C2=A0'configure -= -prefix=3D/mingw64 --host=3Dx86_64-w64-mingw32
=C2=A0--build=3Dx86_64-w6= 4-mingw32 --with-modules --without-dbus
=C2=A0--without-compress-install= --with-native-compilation
=C2=A0'CFLAGS=3D-march=3Dx86-64 -mtune=3D= generic -O2 -pipe'
=C2=A0CPPFLAGS=3D-D__USE_MINGW_ANSI_STDIO=3D1 LDF= LAGS=3D-pipe'

Configured features:
ACL GIF GMP GNUTLS HARFBUZ= Z JPEG JSON LIBXML2 MODULES NATIVE_COMP NOTIFY
W32NOTIFY PDUMPER PNG RSV= G SOUND THREADS TIFF TOOLKIT_SCROLL_BARS XPM
ZLIB

Important setti= ngs:
=C2=A0 value of $LANG: en_US
=C2=A0 locale-coding-system: cp1252=

Major mode: Lisp Interaction

Minor modes in effect:
=C2= =A0 TeX-PDF-mode: t
=C2=A0 TeX-source-correlate-mode: t
=C2=A0 global= -corfu-mode: t
=C2=A0 corfu-mode: t
=C2=A0 all-the-icons-completion-m= ode: t
=C2=A0 marginalia-mode: t
=C2=A0 savehist-mode: t
=C2=A0 ve= rtico-multiform-mode: t
=C2=A0 vertico-mode: t
=C2=A0 override-global= -mode: t
=C2=A0 tooltip-mode: t
=C2=A0 global-eldoc-mode: t
=C2=A0= eldoc-mode: t
=C2=A0 show-paren-mode: t
=C2=A0 electric-indent-mode:= t
=C2=A0 mouse-wheel-mode: t
=C2=A0 global-prettify-symbols-mode: t<= br>=C2=A0 prettify-symbols-mode: t
=C2=A0 menu-bar-mode: t
=C2=A0 fil= e-name-shadow-mode: t
=C2=A0 global-font-lock-mode: t
=C2=A0 font-loc= k-mode: t
=C2=A0 blink-cursor-mode: t
=C2=A0 auto-composition-mode: t=
=C2=A0 auto-encryption-mode: t
=C2=A0 auto-compression-mode: t
= =C2=A0 line-number-mode: t
=C2=A0 indent-tabs-mode: t
=C2=A0 transien= t-mark-mode: t

Load-path shadows:
c:/Users/xxxx/.emacs.d/elpa/hyd= ra-0.15.0/lv hides c:/Users/xxxx/.emacs.d/elpa/lv-20200507.1518/lv

F= eatures:
(shadow sort mail-extr emacsbug message rmc puny dired dired-lo= addefs
rfc822 mml mml-sec epa derived gnus-util rmail rmail-loaddefs
= text-property-search mm-decode mm-bodies mm-encode mail-parse rfc2231
ma= ilabbrev gmm-utils sendmail rfc2047 rfc2045 ietf-drums mm-util
mail-prsv= r mule-util time-date aide tex crm texmathp le-thesaurus
request mailhea= der autorevert filenotify mail-utils foldout noutline
outline corfu orde= rless all-the-icons-completion all-the-icons
all-the-icons-faces data-ma= terial data-weathericons data-octicons
data-fileicons data-faicons data-= alltheicons marginalia compat compat-29
savehist vertico-multiform verti= co-posframe posframe vertico
use-package-bind-key bind-key easy-mmode ry= o-modal org-macs format-spec
avy expand-region text-mode-expansions er-b= asic-expansions thingatpt
expand-region-core expand-region-custom two-co= lumn hydra lv
disable-mouse edmacro kmacro smart-mode-line-powerline-the= me powerline
comp comp-cstr warnings rx powerline-separators ring color<= br>powerline-themes smart-mode-line advice rich-minority zenburn-theme loop=
ht s dash cl-extra help-mode use-package-ensure use-package-core
fin= der-inf cus-edit pp cus-load wid-edit server tex-site epg rfc6068
epg-co= nfig gnu-elpa-keyring-update info package browse-url url url-proxy
url-p= rivacy url-expand url-methods url-history url-cookie url-domsuf
url-util= mailcap url-handlers url-parse auth-source cl-seq eieio
eieio-core cl-m= acs eieio-loaddefs password-cache json subr-x map
url-vars seq byte-opt = gv bytecomp byte-compile cconv cl-loaddefs cl-lib
iso-transl tooltip eld= oc paren electric uniquify ediff-hook vc-hooks
lisp-float-type elisp-mod= e mwheel dos-w32 ls-lisp disp-table
term/w32-win w32-win w32-vars term/c= ommon-win tool-bar dnd fontset image
regexp-opt fringe tabulated-list re= place newcomment text-mode lisp-mode
prog-mode register page tab-bar men= u-bar rfn-eshadow isearch easymenu
timer select scroll-bar mouse jit-loc= k font-lock syntax font-core
term/tty-colors frame minibuffer cl-generic= cham georgian utf-8-lang
misc-lang vietnamese tibetan thai tai-viet lao= korean japanese eucjp-ms
cp51932 hebrew greek romanian slovak czech eur= opean ethiopic indian
cyrillic chinese composite emoji-zwj charscript ch= arprop case-table
epa-hook jka-cmpr-hook help simple abbrev obarray cl-p= reloaded nadvice
button loaddefs faces cus-face macroexp files window te= xt-properties
overlay sha1 md5 base64 format env code-pages mule custom = widget
hashtable-print-readable backquote threads w32notify w32 multi-tt= y
make-network-process native-compile emacs)

Memory information:<= br>((conses 16 398612 190497)
=C2=A0(symbols 48 23253 131)
=C2=A0(str= ings 32 115775 27414)
=C2=A0(string-bytes 1 3416306)
=C2=A0(vectors 1= 6 35445)
=C2=A0(vector-slots 8 732330 252268)
=C2=A0(floats 8 565 625= )
=C2=A0(intervals 56 363 174)
=C2=A0(buffers 992 11))
--000000000000aabfbf05f384c275--