From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Vladimir Lomov Newsgroups: gmane.emacs.bugs Subject: bug#15903: 24.3.50; Fix small issue with ispell-hunspell when dictionary is set to default (nil) Date: Tue, 19 Nov 2013 21:08:59 +0900 Message-ID: <20131119120859.GD889@smoon> References: <87wqk9k96w.fsf@smoon.org> <20131118063300.GB889@smoon> <20131118121157.GA8051@agmartin.aq.upm.es> <20131118124820.GC889@smoon> <20131119102944.GA18745@agmartin.aq.upm.es> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1384863021 18047 80.91.229.3 (19 Nov 2013 12:10:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 19 Nov 2013 12:10:21 +0000 (UTC) To: Agustin Martin , 15903@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Nov 19 13:10:26 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Vik8L-0006rm-PS for geb-bug-gnu-emacs@m.gmane.org; Tue, 19 Nov 2013 13:10:22 +0100 Original-Received: from localhost ([::1]:48610 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vik8L-0001Z0-3N for geb-bug-gnu-emacs@m.gmane.org; Tue, 19 Nov 2013 07:10:21 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43514) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vik8B-0001YY-0D for bug-gnu-emacs@gnu.org; Tue, 19 Nov 2013 07:10:18 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vik83-0004kP-8j for bug-gnu-emacs@gnu.org; Tue, 19 Nov 2013 07:10:10 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:47032) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vik82-0004hM-QL for bug-gnu-emacs@gnu.org; Tue, 19 Nov 2013 07:10:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Vik81-0005cz-Uq for bug-gnu-emacs@gnu.org; Tue, 19 Nov 2013 07:10:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Vladimir Lomov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 19 Nov 2013 12:10:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15903 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 15903-submit@debbugs.gnu.org id=B15903.138486295321560 (code B ref 15903); Tue, 19 Nov 2013 12:10:01 +0000 Original-Received: (at 15903) by debbugs.gnu.org; 19 Nov 2013 12:09:13 +0000 Original-Received: from localhost ([127.0.0.1]:32818 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vik7E-0005bf-Rn for submit@debbugs.gnu.org; Tue, 19 Nov 2013 07:09:13 -0500 Original-Received: from mail-lb0-f172.google.com ([209.85.217.172]:48828) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vik7C-0005bR-8q for 15903@debbugs.gnu.org; Tue, 19 Nov 2013 07:09:10 -0500 Original-Received: by mail-lb0-f172.google.com with SMTP id z5so1736653lbh.31 for <15903@debbugs.gnu.org>; Tue, 19 Nov 2013 04:09:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=d7G/A5QdG140IGet/6RU9fd2537jIjVuriSVM7PfPGE=; b=0gBVRCyUkiAFJH8AQLkIXPNBtAkRH4GM0BFx5jQ5Fo+2R1fNd02ZkR0NQgCuQ5MALv m9LC/6dR4bFziMY6IX5BhoKG4G4m90SV2qIol8rose5YK2llbV6+1dSWHAx/JtLJct2u LXh08BW5WpwLfx/hoMDcjpvKbLEmMMuNCtgqPptp03nCp4/fd/Ze8OvrqrJ9QDDgT1zn I3DgEFgd4qtUl6NPZoY56VWT8y2yM+vAGtOB5FxqjA6bJJ1lLjFPSrg7nsXRqpbMDHu1 80liHzDD8NQeZW3wNuphxxcMKEv5YLzgCHUsvEhkDsY+GAawBVh9IZVadsmbLG4GpAiE PqTg== X-Received: by 10.112.168.170 with SMTP id zx10mr17684638lbb.0.1384862944191; Tue, 19 Nov 2013 04:09:04 -0800 (PST) Original-Received: from smoon ([141.105.47.97]) by mx.google.com with ESMTPSA id mr1sm15637734lbc.16.2013.11.19.04.09.01 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 Nov 2013 04:09:02 -0800 (PST) Content-Disposition: inline In-Reply-To: <20131119102944.GA18745@agmartin.aq.upm.es> User-Agent: Mutt/1.5.22 (2013-10-16) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:80758 Archived-At: Hello, ** Agustin Martin [2013-11-19 11:29:44 +0100]: > On Mon, Nov 18, 2013 at 09:48:20PM +0900, Vladimir Lomov wrote: >> After some tests I found that my /real/ Emacs configuration works, >> this is odd because earlier it didn't. Using the same settings for test >> files gives failure. I'll back to this problem later on this week. > Hi, > Just to complete info. What does 'hunspell -D' return in your box? Please > try both with your locale and with LC_ALL=C. Thank you, this helps me to resolve my issue. Problem was on my side, at that time when I used to use aspell for spell checking I set environment variable DICTIONARY to string 'russian'. Seems that fools hunspell. When I run hunspell -D in a shell with DICTIONARY set to 'russian' hunspell ended with ... Can't open affix or dictionary files for dictionary named "russian". with exit code 1. When I unset that variable I get ... LOADED DICTIONARY: /usr/share/hunspell/ru_RU.aff /usr/share/hunspell/ru_RU.dic Hunspell 1.3.2 And if I run hunspell with LC_ALL=C: ... LOADED DICTIONARY: /usr/share/hunspell/en_US.aff /usr/share/hunspell/en_US.dic Hunspell 1.3.2 So when I run Emacs in a shell without variable DICTIONARY like LC_ALL=C emacs -Q and perform your steps, (setq ispell-program-name "hunspell") (setq ispell-dictionary) 'evar-region' and 'M-$' some words in *scratch* buffer, then (message "%s" (assoc nil ispell-hunspell-dictionary-alist)) I get expected behaviour: 'M-$' checks words and ispell-hunspell-dictionary-alist contains 'nil' entry so it is treated correctly. > Thanks for the feedback, Thanks again. Now I think this "bug" can be closed as "FIXED". --- WBR, Vladimir Lomov -- Journalism is literature in a hurry. -- Matthew Arnold