From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: bug#13460: Issue to change dictionary when using hunspell on emacs Date: Thu, 17 Jan 2013 01:37:30 -0500 Message-ID: References: <20130116122509.GA2209@omega.in.herr-schmitt.de> <83hamh80ry.fsf@gnu.org> <838v7s8o26.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1358404710 8902 80.91.229.3 (17 Jan 2013 06:38:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 17 Jan 2013 06:38:30 +0000 (UTC) Cc: 13460@debbugs.gnu.org, Jochen@herr-schmitt.de To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jan 17 07:38:47 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 1Tvj7d-0001xY-Qm for geb-bug-gnu-emacs@m.gmane.org; Thu, 17 Jan 2013 07:38:46 +0100 Original-Received: from localhost ([::1]:52378 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tvj7L-0006LQ-85 for geb-bug-gnu-emacs@m.gmane.org; Thu, 17 Jan 2013 01:38:27 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:46447) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tvj7I-0006KI-Dr for bug-gnu-emacs@gnu.org; Thu, 17 Jan 2013 01:38:25 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tvj7H-0001sf-Ed for bug-gnu-emacs@gnu.org; Thu, 17 Jan 2013 01:38:24 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58764) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tvj7H-0001sb-B2 for bug-gnu-emacs@gnu.org; Thu, 17 Jan 2013 01:38:23 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1Tvj7u-00075w-4M for bug-gnu-emacs@gnu.org; Thu, 17 Jan 2013 01:39:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Glenn Morris Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 17 Jan 2013 06:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13460 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 13460-submit@debbugs.gnu.org id=B13460.135840469627214 (code B ref 13460); Thu, 17 Jan 2013 06:39:02 +0000 Original-Received: (at 13460) by debbugs.gnu.org; 17 Jan 2013 06:38:16 +0000 Original-Received: from localhost ([127.0.0.1]:35994 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Tvj76-00074q-Ub for submit@debbugs.gnu.org; Thu, 17 Jan 2013 01:38:14 -0500 Original-Received: from fencepost.gnu.org ([208.118.235.10]:46949) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Tvj74-00074j-DE for 13460@debbugs.gnu.org; Thu, 17 Jan 2013 01:38:11 -0500 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1Tvj6Q-0000gA-9g; Thu, 17 Jan 2013 01:37:30 -0500 X-Spook: EuroFed tempest interception red noise kibo CID wire X-Ran: |!hG4L(W^)29+![1G*[]?7__834;&K::lpt9X[>X#!8UU|]P[sne\`[P%tkXL2mT#yV:!- X-Hue: white X-Attribution: GM In-Reply-To: <838v7s8o26.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 17 Jan 2013 05:51:13 +0200") User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.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:69897 Archived-At: Eli Zaretskii wrote: >> From: Glenn Morris >> Cc: Jochen Schmitt , 13460@debbugs.gnu.org >> Date: Wed, 16 Jan 2013 18:23:23 -0500 >> >> Eli Zaretskii wrote: >> >> > You need to install the English dictionary for Hunspell. I suspect >> > that its name will be en_US (or maybe en_GB), not "english". >> >> M-x ispell-change-dictionary doesn't accept "en_US" as input. >> It wants something like "english" (coming from >> ispell-dictionary-base-alist), which as you say is wrong. > > Then one needs to customize ispell-local-dictionary-alist to include > the setting for en_US. Here's what I have there: > > '("en_US" > "[[:alpha:]]" > "[^[:alpha:]]" > "[']" nil ("-r") nil utf-8) > > The OP may wish to omit the -r switch, it's not a necessity. > > Also, be sure to look at en_US.aff and match the character set it > mentions there with the "utf-8" part above. IMO it should work out of the box. Ie ispell-set-spellchecker-params should handle hunspell as it currently does aspell, which has its own ispell-find-aspell-dictionaries func.