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#51843: Ispell personal dictionary breaks other dictionaries Date: Sun, 14 Nov 2021 18:10:22 +0200 Message-ID: <83y25qu39t.fsf@gnu.org> References: <834k8evmfh.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34553"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 51843@debbugs.gnu.org To: Tor Kringeland Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Nov 14 17:11:31 2021 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 1mmI6N-0008pX-Ox for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 14 Nov 2021 17:11:31 +0100 Original-Received: from localhost ([::1]:34416 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mmI6M-0002zb-Dj for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 14 Nov 2021 11:11:30 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:34286) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mmI5v-0002yl-5P for bug-gnu-emacs@gnu.org; Sun, 14 Nov 2021 11:11:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39853) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mmI5u-0008Rp-R2 for bug-gnu-emacs@gnu.org; Sun, 14 Nov 2021 11:11:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mmI5u-00049u-Ig for bug-gnu-emacs@gnu.org; Sun, 14 Nov 2021 11:11: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: Sun, 14 Nov 2021 16:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51843 X-GNU-PR-Package: emacs Original-Received: via spool by 51843-submit@debbugs.gnu.org id=B51843.163690624515961 (code B ref 51843); Sun, 14 Nov 2021 16:11:02 +0000 Original-Received: (at 51843) by debbugs.gnu.org; 14 Nov 2021 16:10:45 +0000 Original-Received: from localhost ([127.0.0.1]:51399 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mmI5c-00049N-KL for submit@debbugs.gnu.org; Sun, 14 Nov 2021 11:10:44 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:33516) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mmI5a-00049A-MK for 51843@debbugs.gnu.org; Sun, 14 Nov 2021 11:10:43 -0500 Original-Received: from [2001:470:142:3::e] (port=57036 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mmI5V-0008Li-28; Sun, 14 Nov 2021 11:10:37 -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=zI9u3sjAxPPsG387mlrvrQxBgZzf/eDPxbd8Ar7FZp4=; b=KHYS7EJXN45n 0uwpOUMsGwZbm62kXMB/cRcdtbBpsNVEdr3qnq4aAVP6gdwUKSGlcmLRmi8VWorigE13aCpLsvuw+ xD2TLuKSyKdBY+Ao6uczAP31C6NJivLvlZBOIIrUwLC6CT/Ec+LoP7lh4+BiHVgjMCHQ0x42InBBB Ks0D3XLHQIoR6pyZ2rYTeEF193NrLKVu0+vcb5sSlAN8SWuMmRcDA/m2s8YKZANMtIORwrTU0doJD nXrpBXt5Z/MniqNcGF8T9ey3LZ7nhkYp6SkSEb6ukLHzwCpV70UmIym9Ql5GlnwfqSum+UIoN88Ho uKdujhpWQM3+LoEisYm/NA==; Original-Received: from [87.69.77.57] (port=1821 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 1mmI5U-0000sN-Mn; Sun, 14 Nov 2021 11:10:37 -0500 In-Reply-To: (message from Tor Kringeland on Sun, 14 Nov 2021 16:28:04 +0100) 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" Xref: news.gmane.io gmane.emacs.bugs:219963 Archived-At: [Please use Reply All to reply, so that the bug tracker gets a copy.] > From: Tor Kringeland > Date: Sun, 14 Nov 2021 16:28:04 +0100 > > Eli Zaretskii writes: > > > Isn't this the same problem with the LANG setting in the environment? > > I don't think so. The issues seems to be a disparity between the > language codes for the personal dictionary (you can only have a personal > dictionary for one language) and the main dictionary. The header of > `/tmp/words.txt' is > > personal_ws-1.1 en 1 > > where the `en' refers to the language/dictionary and `1' refers to the > number of words in your personal dictionary. If I initiate a personal > dictionary with, say, Norwegian, the header looks like > > personal_ws-1.1 nn 1 > > and I get the opposite problem (that it works for Norwegian but not > English). How do you initiate the personal dictionary? > I suspect the error comes from `ispell' feeding these two disparate > language codes to `aspell': it tries to combine two dictionaries for two > different languages and `aspell' complains. But I'm not certain this is > the case, as I don't understand well the code in `ispell.el'. Does the same problem happen if you invoke Aspell from the shell, passing it the Norwegian language and the personal dictionary for English? > A possible fix would be to have an `ispell-personal-dictionaries-alist' > in which one could specify different personal dictionaries for different > language codes/dictionaries, which would be a feature improvement. > Another fix would be for `ispell' to check for disparity in language > code of the current dictionary and the personal dictionary, and if there > is one, to not feed the personal dictionary into `ispell-program-name'. > > Are you able to reproduce the issue? I don't use Aspell. I use Hunspell, where this problem doesn't exist, and where you can have a separate personal dictionary for each language.