From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: 24.5.; invoking hunspell with multiple dicts Date: Fri, 01 May 2015 18:03:49 +0300 Message-ID: <83wq0sqqzu.fsf@gnu.org> References: <86383gy5yk.fsf@gmx.de> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1430492690 11913 80.91.229.3 (1 May 2015 15:04:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 1 May 2015 15:04:50 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri May 01 17:04:42 2015 Return-path: Envelope-to: geh-help-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 1YoCUY-0002o2-Da for geh-help-gnu-emacs@m.gmane.org; Fri, 01 May 2015 17:04:38 +0200 Original-Received: from localhost ([::1]:54390 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YoCUX-0004jR-QZ for geh-help-gnu-emacs@m.gmane.org; Fri, 01 May 2015 11:04:37 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57635) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YoCUM-0004jH-Dx for help-gnu-emacs@gnu.org; Fri, 01 May 2015 11:04:27 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YoCUJ-0007os-C0 for help-gnu-emacs@gnu.org; Fri, 01 May 2015 11:04:26 -0400 Original-Received: from mtaout25.012.net.il ([80.179.55.181]:46722) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YoCUJ-0007oZ-3d for help-gnu-emacs@gnu.org; Fri, 01 May 2015 11:04:23 -0400 Original-Received: from conversion-daemon.mtaout25.012.net.il by mtaout25.012.net.il (HyperSendmail v2007.08) id <0NNO00100EBDPR00@mtaout25.012.net.il> for help-gnu-emacs@gnu.org; Fri, 01 May 2015 17:59:45 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout25.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NNO00K69EZL5G80@mtaout25.012.net.il> for help-gnu-emacs@gnu.org; Fri, 01 May 2015 17:59:45 +0300 (IDT) In-reply-to: <86383gy5yk.fsf@gmx.de> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 80.179.55.181 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:104135 Archived-At: > From: Arash Esbati > Date: Fri, 01 May 2015 11:58:43 +0200 > > I use hunspell with multiple dicts through ispell.el. Beginning with > 24.4., it stopped working and the issue persists in 24.5. The recipe to > produce the error: > > 1. Start emacs with > emacs --eval '(setq debug-on-error t)' -Q & > > 2. Eval the following: > > (setq ispell-program-name "hunspell") > > (setq > ispell-local-dictionary-alist > '((nil "[A-Za-z]" "[^A-Za-z]" "[']" nil > ("-d" "en_US") > nil iso-8859-1) > ("american" "[A-Za-z]" "[^A-Za-z]" "[']" nil > ("-d" "en_US") > nil iso-8859-1) > ("deutsch8" > "[a-zA-Z\304\326\334\344\366\337\374]" > "[^a-zA-Z\304\326\334\344\366\337\374]" "[-'=~\"]" t > ("-d" "de_DE") > nil iso-8859-1) > ("deutsch8+american" > "[a-zA-Z\304\326\334\344\366\337\374]" > "[^a-zA-Z\304\326\334\344\366\337\374]" "[']" t > ("-d" "de_DE,en_US") > nil iso-8859-1))) > > (global-set-key "\C-cia" > '(lambda () > (interactive) > (ispell-change-dictionary "deutsch8+american"))) You cannot use Hunspell with multiple dictionaries, unless they all use the same *.aff file. Otherwise, you will get a speller that will mist mis-spelled words, because these mis-spelled words will look as correct spellings according to the other language. IOW, this feature of Hunspell is for using several dictionaries for the same language, like if you want to use a dictionary of medicinal terms in addition to the general vocabulary. In any case, the correct the syntax for using several dictionaries is dict1,dict2,dict3,..., i.e. use commas. > Debugger entered--Lisp error: (error "ispell-phaf: No matching entry for deutsch8+american. > ") All of the above notwithstanding, this error message does indicate a bug, so please submit a bug report by "M-x report-emacs-bug RET".