From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Arash Esbati Newsgroups: gmane.emacs.help Subject: 24.5.; invoking hunspell with multiple dicts Date: Fri, 01 May 2015 11:58:43 +0200 Message-ID: <86383gy5yk.fsf@gmx.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1430487054 15408 80.91.229.3 (1 May 2015 13:30:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 1 May 2015 13:30:54 +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 15:30:47 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 1YoB1i-0007sg-8S for geh-help-gnu-emacs@m.gmane.org; Fri, 01 May 2015 15:30:46 +0200 Original-Received: from localhost ([::1]:54062 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YoB1h-0005MI-Pc for geh-help-gnu-emacs@m.gmane.org; Fri, 01 May 2015 09:30:45 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40356) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yo7pE-0006xE-KX for help-gnu-emacs@gnu.org; Fri, 01 May 2015 06:05:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yo7pB-0003dF-9b for help-gnu-emacs@gnu.org; Fri, 01 May 2015 06:05:40 -0400 Original-Received: from mo6-p05-ob.smtp.rzone.de ([2a01:238:20a:202:5305::12]:27576) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yo7pA-0003ao-QI for help-gnu-emacs@gnu.org; Fri, 01 May 2015 06:05:37 -0400 X-RZG-AUTH: :LX4FZkiIfuylNuAdMHQ4lncSR35KjR0W31pc2hVA+gGKUOTh72G2Oi5kV6AJAsU= X-RZG-CLASS-ID: mo05 Original-Received: from mutant (pD9F930AC.dip0.t-ipconnect.de [217.249.48.172]) by smtp.strato.de (RZmta 37.5 DYNA|AUTH) with ESMTPA id Y05503r419xAAFf for ; Fri, 1 May 2015 11:59:10 +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-Received-From: 2a01:238:20a:202:5305::12 X-Mailman-Approved-At: Fri, 01 May 2015 09:30:30 -0400 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:104130 Archived-At: 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"))) 3. Hit `C-c i a' followed by `M-x ispell RET' The result is: --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 24666) 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--- It works if I shadow the current `ispell.el' with the one distributed with Emacs 24.3. Any idea? TIA. -- Arash Esbati