From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Tor Kringeland Newsgroups: gmane.emacs.bugs Subject: bug#51843: Ispell personal dictionary breaks other dictionaries Date: Sun, 14 Nov 2021 16:29:29 +0100 Message-ID: References: <834k8evmfh.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14778"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 51843@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Nov 14 16:32:47 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 1mmHUs-0003fn-3x for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 14 Nov 2021 16:32:46 +0100 Original-Received: from localhost ([::1]:46992 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mmHUp-0007Gu-QS for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 14 Nov 2021 10:32:44 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:57686) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mmHSH-0004OR-DS for bug-gnu-emacs@gnu.org; Sun, 14 Nov 2021 10:30:06 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39820) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mmHSE-00040V-Jt for bug-gnu-emacs@gnu.org; Sun, 14 Nov 2021 10:30:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mmHSE-00034l-H1 for bug-gnu-emacs@gnu.org; Sun, 14 Nov 2021 10:30:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Tor Kringeland Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 14 Nov 2021 15:30: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.163690377511750 (code B ref 51843); Sun, 14 Nov 2021 15:30:02 +0000 Original-Received: (at 51843) by debbugs.gnu.org; 14 Nov 2021 15:29:35 +0000 Original-Received: from localhost ([127.0.0.1]:51364 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mmHRm-00033S-QT for submit@debbugs.gnu.org; Sun, 14 Nov 2021 10:29:35 -0500 Original-Received: from mailgw201.it.ntnu.no ([129.241.56.178]:52868) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mmHRk-00033J-DR for 51843@debbugs.gnu.org; Sun, 14 Nov 2021 10:29:33 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ntnu.no; i=@ntnu.no; q=dns/txt; s=s1-1909-ntnu; t=1636903770; h=from : to : cc : subject : in-reply-to : references : date : message-id : mime-version : content-type : from; bh=Q1PniOhTsLeVBr3vhpVVxLQZWzpdKQTvJSnCB/YnCRQ=; b=fdyA9SlqHk86QQsAQQQ0UZfOulTFsE+xsX+zfeTRn8tMd8WEgYp1Dkpk4Hb2AaXOevk9Z t9q1cCeIInkRmQbcJsHo7w8rSfGPhjx1jJgQ+xaXdg8eRBj9mclQQiPIBFIkaMPJ7OAF2Ln 9VVvYr3i9GkPPkKUWyNmaLHZOjcOgCcPgMvdr/qMwlmtLJj0jkavKtiKFDJj6/xd9MtRDxR UEulbGp81CAUYPvelfgm4e03ms43tqq2WlmaEh1CNphsZm6cykEDODke0IZtqu6o7KCf5Ey jxQCbHkZwNlWt6W/MsSEikY02RBkpyyJj4awbiXET7YXrxlBcMFOiObxQmGQ== Original-Received: from localhost (localhost [127.0.0.1]) by mailgw201.it.ntnu.no (Postfix) with ESMTP id D38F99028D0; Sun, 14 Nov 2021 16:29:30 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mailgw201.it.ntnu.no Original-Received: from mailgw201.it.ntnu.no ([127.0.0.1]) by localhost (mailgw201.it.ntnu.no [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id r_fs2vYjRHFa; Sun, 14 Nov 2021 16:29:30 +0100 (CET) Original-Received: from localhost (unknown [37.120.203.82]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: takringe@ntnu.no) by mailgw201.it.ntnu.no (Postfix) with ESMTPSA id 71B169028AE; Sun, 14 Nov 2021 16:29:30 +0100 (CET) In-Reply-To: <834k8evmfh.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" Xref: news.gmane.io gmane.emacs.bugs:219957 Archived-At: 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). 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'. 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? (Sorry for re-sending, I forgot to CC the mailing list.)