From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Martin Kletzander Newsgroups: gmane.emacs.bugs Subject: bug#25830: 25.2; ispell doesn't parse hunspell dictionaries properly Date: Tue, 21 Feb 2017 21:24:54 +0100 Message-ID: <20170221202454.GA30086@wheatley> References: <20170221091857.GA4096@wheatley> <83k28jo3ur.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed X-Trace: blaine.gmane.org 1487709827 9666 195.159.176.226 (21 Feb 2017 20:43:47 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 21 Feb 2017 20:43:47 +0000 (UTC) User-Agent: Mutt/1.5.24 (2015-08-30) Cc: 25830@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Feb 21 21:43:41 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cgHHV-0001L0-0f for geb-bug-gnu-emacs@m.gmane.org; Tue, 21 Feb 2017 21:43:29 +0100 Original-Received: from localhost ([::1]:48432 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cgHHa-0001Zd-SN for geb-bug-gnu-emacs@m.gmane.org; Tue, 21 Feb 2017 15:43:34 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57674) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cgH0g-0001Kp-19 for bug-gnu-emacs@gnu.org; Tue, 21 Feb 2017 15:26:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cgH0c-0003Xz-Rt for bug-gnu-emacs@gnu.org; Tue, 21 Feb 2017 15:26:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:51064) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cgH0c-0003Xt-OA for bug-gnu-emacs@gnu.org; Tue, 21 Feb 2017 15:26:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cgH0c-0003ut-G8 for bug-gnu-emacs@gnu.org; Tue, 21 Feb 2017 15:26:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Martin Kletzander Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 21 Feb 2017 20:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25830 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 25830-submit@debbugs.gnu.org id=B25830.148770870414990 (code B ref 25830); Tue, 21 Feb 2017 20:26:02 +0000 Original-Received: (at 25830) by debbugs.gnu.org; 21 Feb 2017 20:25:04 +0000 Original-Received: from localhost ([127.0.0.1]:49263 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cgGzf-0003ti-Nb for submit@debbugs.gnu.org; Tue, 21 Feb 2017 15:25:04 -0500 Original-Received: from mail-wr0-f178.google.com ([209.85.128.178]:35363) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cgGzd-0003t8-DI for 25830@debbugs.gnu.org; Tue, 21 Feb 2017 15:25:01 -0500 Original-Received: by mail-wr0-f178.google.com with SMTP id s27so42448738wrb.2 for <25830@debbugs.gnu.org>; Tue, 21 Feb 2017 12:25:01 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=lI8np73TCVVrTO+yc/0acYA3F4NDkq2ANNastjFPmlU=; b=ZxN6y3mu1WFrn3AkCl2cELDgB3MKkGxtPdlg3l9sCB8/RTOweWjPun0TpsMtdexxT+ SwnlCSBV0/i/h80/xQKV3W319m0oTKG+hFTiqVQOuEsDKukM5GMeQFzekeJB8FToIM/H NJrnoSitVu82fAkSU+hvBCQZ6HiJ3ZqmG7eZGuX8DDYoQsmgNpaG6jPKQwO0D3zlPSvd aOOpX2dAfFuglfoasYTs2iziPlZlkQW3cLes/TkwnZmRsaMP/748QCsFZVXxvftOVvnp 8m2hMWcuxDhCLPIrfmGVY5yLWdvbrSmyotCBC1cpmIec3ftRfEMI6fKBWz9Xc4RyKNqR bMOg== X-Gm-Message-State: AMke39keaOKeeuwNAPnGj0unAPvvlE0f6qA2PgbbreKQTCA1YXKCF0/yPjSgp9r78/1RWg== X-Received: by 10.223.173.109 with SMTP id p100mr20160928wrc.168.1487708695793; Tue, 21 Feb 2017 12:24:55 -0800 (PST) Original-Received: from wheatley.localdomain (cock.kentus.net. [95.82.177.71]) by smtp.gmail.com with ESMTPSA id 136sm18830154wms.32.2017.02.21.12.24.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 21 Feb 2017 12:24:55 -0800 (PST) Original-Received: by wheatley.localdomain (Postfix, from userid 1000) id 140907E0049; Tue, 21 Feb 2017 21:24:54 +0100 (CET) Content-Disposition: inline In-Reply-To: <83k28jo3ur.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:129632 Archived-At: On Tue, Feb 21, 2017 at 07:23:08PM +0200, Eli Zaretskii wrote: >> Date: Tue, 21 Feb 2017 10:18:57 +0100 >> From: Martin Kletzander >> >> I have hunspell installed in the system with two default dictionaries. > >Please tell more details about the meaning of this. Do you mean you >wanted to start Hunspell with 2 dictionaries so that it could >spell-check text that mixes 2 different languages? Or did you mean >something else? IOW, the "with two default dictionaries" part >confuses me. > Sorry, Idon't know spellcheckers that much. Ilooked at hunspell's man page, learned a bit, so I'll try to explain it better this time. I have multiple dictionaries installed. Hunspell finds all of them, but selects *two* of them. According to the man page, that is done according to LC_ALL, LC_MESSAGES, and LANG environment variables. Becuase hunspell selects more of them (which is something I want it to do), it lists both of them as "LOADED DICTIONARY", ispell parses those (actually just lines ending with ".aff") and if it finds more than one, it errors out. >> I was trying to setup ispell so that it works properly and I couldn't. >> So I started looking at the sources for ispell and I found one part that >> can't work. It may be intentional, but the real problem is that I can't >> use spellchecker at all. When `emacs -Q` is ran, it is enough to do M-$ >> with *no additinal settings*. The error message (and following messages >> for consecutive M-$) are visible below in 'Recent messages'. >> >> I could only trace the problem to the ispell.el where the error is >> printed. The reason for that is probably the fact that `hunspell -D` >> has this output on my system: > >I don't immediately see anything wrong here. Does spell-checking work >if you set it up to use just one default dictionary, as usual? > That's another problem. Since the initialization itself fails, it errors out before it checks any set variables. So no matter what I set up, it ends up with the same behaviour. If I remove the second dictionary from my system, however, it works. I tried workaround with a wrapper around hunspell that modifies the output of `hunspell -D` and it works, but that's really ugly. >Thanks. Thank you, Martin