From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Arash Esbati Newsgroups: gmane.emacs.bugs Subject: bug#20495: 24.5; invoking Hunspell with multiple dicts Date: Sun, 03 May 2015 10:11:17 +0200 Message-ID: <86r3qygjx6.fsf@gmx.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1430674828 29552 80.91.229.3 (3 May 2015 17:40:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 3 May 2015 17:40:28 +0000 (UTC) To: 20495@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun May 03 19:40:15 2015 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 1YoxsC-0002Cl-AA for geb-bug-gnu-emacs@m.gmane.org; Sun, 03 May 2015 19:40:12 +0200 Original-Received: from localhost ([::1]:59894 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YoxsB-0002Jk-K9 for geb-bug-gnu-emacs@m.gmane.org; Sun, 03 May 2015 13:40:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51438) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yoxs8-0002IX-HC for bug-gnu-emacs@gnu.org; Sun, 03 May 2015 13:40:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yoxs4-0001T8-DP for bug-gnu-emacs@gnu.org; Sun, 03 May 2015 13:40:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:50928) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yoxs4-0001Sf-9n for bug-gnu-emacs@gnu.org; Sun, 03 May 2015 13:40:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Yoxs3-0007ef-Fc for bug-gnu-emacs@gnu.org; Sun, 03 May 2015 13:40:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Arash Esbati Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 03 May 2015 17:40:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 20495 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.143067477829365 (code B ref -1); Sun, 03 May 2015 17:40:03 +0000 Original-Received: (at submit) by debbugs.gnu.org; 3 May 2015 17:39:38 +0000 Original-Received: from localhost ([127.0.0.1]:60899 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yoxrd-0007dY-JP for submit@debbugs.gnu.org; Sun, 03 May 2015 13:39:38 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:36390) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yop05-0007Sa-JO for submit@debbugs.gnu.org; Sun, 03 May 2015 04:11:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yoozz-0000Xx-EO for submit@debbugs.gnu.org; Sun, 03 May 2015 04:11:40 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:43992) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yoozz-0000Xt-Ba for submit@debbugs.gnu.org; Sun, 03 May 2015 04:11:39 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49897) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yoozy-0006ya-CO for bug-gnu-emacs@gnu.org; Sun, 03 May 2015 04:11:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yoozt-0000Vy-CI for bug-gnu-emacs@gnu.org; Sun, 03 May 2015 04:11:38 -0400 Original-Received: from mo6-p05-ob.smtp.rzone.de ([2a01:238:20a:202:5305::12]:61865) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yoozt-0000Uz-4y for bug-gnu-emacs@gnu.org; Sun, 03 May 2015 04:11:33 -0400 X-RZG-AUTH: :LX4FZkiIfuylNuAdMHQ4lncSR35KjR0W31pc2hVA+gGAVv3+6WyhJiYa1lyrIwA= X-RZG-CLASS-ID: mo05 Original-Received: from mutant (p5795E4BC.dip0.t-ipconnect.de [87.149.228.188]) by smtp.strato.de (RZmta 37.5 DYNA|AUTH) with ESMTPA id 205a52r438BTYln for ; Sun, 3 May 2015 10:11:29 +0200 (CEST) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Mailman-Approved-At: Sun, 03 May 2015 13:39:35 -0400 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:102412 Archived-At: I've been `abusing' Hunspell's feature with multiple dicts through ispell.el. Beginning with 24.4., it stopped working and the issue persists in 24.5. You can produce the error with: 1. Start emacs with emacs --eval '(setq debug-on-error t)' -Q & 2. Eval: (setq ispell-local-dictionary-alist '((nil "[A-Za-z]" "[^A-Za-z]" "[']" nil ("-d" "en_US") 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"))) 3. Hit `C-c i a' followed by `M-x ispell RET' which says: --8<---------------cut here---------------start------------->8--- Debugger entered--Lisp error: (error "ispell-phaf: No matching entry for deutsch8+american. ") signal(error ("ispell-phaf: No matching entry for deutsch8+american.\n")) error("ispell-phaf: No matching entry for %s.\n" "deutsch8+american") ispell-parse-hunspell-affix-file("deutsch8+american") ispell-hunspell-fill-dictionary-entry("deutsch8+american") ispell-start-process() ispell-init-process() ispell-buffer-local-words() ispell-accept-buffer-local-defs() ispell-region(1 610) ispell-buffer() ispell() call-interactively(ispell record nil) command-execute(ispell record) execute-extended-command(nil "ispell") call-interactively(execute-extended-command nil nil) command-execute(execute-extended-command) --8<---------------cut here---------------end--------------->8--- Eli kindly explained to me here that Hunspell does not support multiple languages, but it looks like a bug in `ispell.el'. Best, Arash