unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Arash Esbati <esbati@gmx.de>
To: 20495@debbugs.gnu.org
Subject: bug#20495: 24.5; invoking Hunspell with multiple dicts
Date: Sun, 03 May 2015 10:11:17 +0200	[thread overview]
Message-ID: <86r3qygjx6.fsf@gmx.de> (raw)

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
<http://thread.gmane.org/gmane.emacs.help/104130> that Hunspell does not
support multiple languages, but it looks like a bug in `ispell.el'.

Best, Arash





             reply	other threads:[~2015-05-03  8:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-03  8:11 Arash Esbati [this message]
2015-05-03 19:21 ` bug#20495: 24.5; invoking Hunspell with multiple dicts Eli Zaretskii
2015-08-22 14:29   ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86r3qygjx6.fsf@gmx.de \
    --to=esbati@gmx.de \
    --cc=20495@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).