unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* 24.5.; invoking hunspell with multiple dicts
@ 2015-05-01  9:58 Arash Esbati
  2015-05-01 15:03 ` Eli Zaretskii
  0 siblings, 1 reply; 8+ messages in thread
From: Arash Esbati @ 2015-05-01  9:58 UTC (permalink / raw)
  To: help-gnu-emacs

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



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2015-05-05  2:33 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-01  9:58 24.5.; invoking hunspell with multiple dicts Arash Esbati
2015-05-01 15:03 ` Eli Zaretskii
2015-05-01 15:33   ` Arash Esbati
2015-05-01 17:42     ` Eli Zaretskii
2015-05-02 20:25       ` Arash Esbati
2015-05-03 14:40         ` Eli Zaretskii
2015-05-04 19:57           ` Arash Esbati
2015-05-05  2:33             ` Eli Zaretskii

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).