On Wed, Dec 12, 2018 at 11:53:29AM +0100, Sébastien Hinderer wrote:
> Agustin Martin (2018/12/12 11:31 +0100):
> > On Tue, Dec 11, 2018 at 06:07:41PM +0100, Sebastien Hinderer wrote:
> > > Package: dictionaries-common
> > > Version: 1.28.1
> > > Severity: normal
> > > 
> > > Dear Maintainer,
> > > 
> > > For some reason ispell-find-hunspell-dictionaries does not find the 
> > > installed hunspell dictionaries, leading ispell-hunspell-dictionary-alist 
> > > to be nil.
> > 
> > Hi,
> > 
> > GNU Emacs uses its own ispell.el and flyspell.el files, not those provided
> > by dictionaries-common, which are only for XEmacs.
> 
> Oh, I wasn't aware of that, sorry.

No problem. dictionaries-common used to ship {ispell,flyspell}.el also for
GNU Emacs, containing the most recent version patched to work with XEmacs
and older Emacs, but that is no longer true because of compatibility issues.

> > ispell.el has recently
> > been patched in Emacs to work around this issue, but since XEmacs does not
> > use hunspell auto-detection I do not think this change is needed in
> > dictionaries-common ispell.el.
> 
> OK so I am using GNU Emacs, not xemacs. IS there a way for me to get the
> correct (patched) version of ispell.el by installing debian packages, or
> do I have to do something different, like installing an upstream version
> of GNU Emacs?

One possibility is to wait for Emacs 26 to be packaged. I think this change
was not pushed to the Emacs25 (master) branch. Installing Emacs from
upstream is an overkill and will become old at some time.

A temporary hack would be to add an entry to your .emacs file, something
like (if none is explicitly set)

;; ----------------------------
(setq ispell-local-dictionary-alist
      (append ispell-local-dictionary-alist
              '(
                ("castellano8"
                 "[[:alpha:]]"
                 "[^[:alpha:]]"
                 "[-]" t ("-d" "es_ES") nil utf-8)
                )))
;; ---------------------------

adapted to your language. Do not forget to remove it once either hunspell or
Emacs are fixed.

Regards,

-- 
Agustin

Reply via email to