Bug#916227: dictionaries-common: ispell-find-hunspell-dictionaries fails to find installed dictionaries

2018-12-22 Thread Agustin Martin
El mié., 19 dic. 2018 a las 14:21, Sébastien Hinderer
() escribió:
>
> Sorry. I added the following to my .emacs.el:
>
> (setq ispell-local-dictionary-alist
>   (append ispell-local-dictionary-alist
>   '(
> ("francais7"
>  "[[:alpha:]]"
>  "[^[:alpha:]]"
>  "[-]" t ("-d" "fr_FR") nil utf-8)
> )))
>
> When I start emacs I get the following error message:
>
> Symbol's value as variable is void: ispell-local-dictionary-alist

Hi, Sébastien

I forgot that ispell.el is not loaded at startup but later on demand.
Try wrapping the code in eval-after-load (I might have missed a
parenthesis)

(eval-after-load "ispell"
(setq ispell-local-dictionary-alist
   (append ispell-local-dictionary-alist
   '(
 ("francais7"
  "[[:alpha:]]"
  "[^[:alpha:]]"
  "[-]" t ("-d" "fr_FR") nil utf-8)
 )))
)

This should run the code once ispell.el is loaded.

Let me know if this works,

Regards,

--
Agustin



Bug#916227: dictionaries-common: ispell-find-hunspell-dictionaries fails to find installed dictionaries

2018-12-19 Thread Sébastien Hinderer
Hi,

> > > 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.
> > 
> > Thanks! Unfortuantely, I don't think this would work because, as far as
> > I understand it, the list of dictionaries is computed when a
> > spell-checking command is run for the first time so I'd expect that such
> > a definition in the .emacs.el file would be overwritten.
> 
> Please try it.

Sorry. I added the following to my .emacs.el:

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

When I start emacs I get the following error message:

Symbol's value as variable is void: ispell-local-dictionary-alist

Sébastien.



Bug#916227: dictionaries-common: ispell-find-hunspell-dictionaries fails to find installed dictionaries

2018-12-13 Thread Agustin Martin
On Thu, Dec 13, 2018 at 05:41:11PM +0100, Sébastien Hinderer wrote:
> > 
> > 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.
> 
> Thanks! Unfortuantely, I don't think this would work because, as far as
> I understand it, the list of dictionaries is computed when a
> spell-checking command is run for the first time so I'd expect that such
> a definition in the .emacs.el file would be overwritten.

Please try it.

-- 
Agustin



Bug#916227: dictionaries-common: ispell-find-hunspell-dictionaries fails to find installed dictionaries

2018-12-13 Thread Sébastien Hinderer
Dear Agustin, many thanks for your response!

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

I see. Just a few weeks ago I had a bug that I oculd fix by upgrading
dictionaries-common, the problem fixed by version 1.27.4.

So I really thought the problem was there again.

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

Thanks! Unfortuantely, I don't think this would work because, as far as
I understand it, the list of dictionaries is computed when a
spell-checking command is run for the first time so I'd expect that such
a definition in the .emacs.el file would be overwritten.

Sébastien.



Bug#916227: dictionaries-common: ispell-find-hunspell-dictionaries fails to find installed dictionaries

2018-12-12 Thread Agustin Martin
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



Bug#916227: dictionaries-common: ispell-find-hunspell-dictionaries fails to find installed dictionaries

2018-12-12 Thread Sébastien Hinderer
Hello,

Many thanks for your prompt and kind response!

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.

> 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?

All the best and thanks again for your assistance,

Sébastien.



Bug#916227: dictionaries-common: ispell-find-hunspell-dictionaries fails to find installed dictionaries

2018-12-12 Thread Agustin Martin
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. 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.

Please let me know if something is not working that way. Otherwise I will
close this bug report.

Thanks for your contribution to Debian.

Regards,

-- 
Agustin



Bug#916227: dictionaries-common: ispell-find-hunspell-dictionaries fails to find installed dictionaries

2018-12-11 Thread Sebastien Hinderer
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.

Will be happy to provide any information that can help fixing this.

output of hunspell -D is:

```
SEARCH PATH:
.::/usr/share/hunspell:/usr/share/myspell:/usr/share/myspell/dicts:/Library/Spelling:/home/shindere/.openoffice.org/3/user/wordbook:/home/shindere/.openoffice.org2/user/wordbook:/home/shindere/.openoffice.org2.0/user/wordbook:/home/shindere/Library/Spelling:/opt/openoffice.org/basis3.0/share/dict/ooo:/usr/lib/openoffice.org/basis3.0/share/dict/ooo:/opt/openoffice.org2.4/share/dict/ooo:/usr/lib/openoffice.org2.4/share/dict/ooo:/opt/openoffice.org2.3/share/dict/ooo:/usr/lib/openoffice.org2.3/share/dict/ooo:/opt/openoffice.org2.2/share/dict/ooo:/usr/lib/openoffice.org2.2/share/dict/ooo:/opt/openoffice.org2.1/share/dict/ooo:/usr/lib/openoffice.org2.1/share/dict/ooo:/opt/openoffice.org2.0/share/dict/ooo:/usr/lib/openoffice.org2.0/share/dict/ooo
AVAILABLE DICTIONARIES (path is not mandatory for -d option):
/usr/share/hunspell/fr_MC
/usr/share/hunspell/fr_LU
/usr/share/hunspell/fr_CH
/usr/share/hunspell/fr_CA
/usr/share/hunspell/fr_BE
/usr/share/hunspell/fr_FR
/usr/share/hunspell/fr
/usr/share/hunspell/en_US
/usr/share/myspell/dicts/fr_MC
/usr/share/myspell/dicts/fr_LU
/usr/share/myspell/dicts/fr_CH
/usr/share/myspell/dicts/fr_CA
/usr/share/myspell/dicts/fr_BE
/usr/share/myspell/dicts/fr_FR
```

Thanks!

Sébastien.

-- System Information:
Debian Release: buster/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.18.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), 
LANGUAGE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages dictionaries-common depends on:
ii  debconf [debconf-2.0]  1.5.69
ii  emacsen-common 3.0.4
ii  libtext-iconv-perl 1.7-5+b7

dictionaries-common recommends no packages.

Versions of packages dictionaries-common suggests:
ii  hunspell  1.7.0-2
ii  wamerican [wordlist]  2018.04.16-1
ii  wfrench [wordlist]1.2.4-1

-- debconf information:
  dictionaries-common/invalid_debconf_value:
  dictionaries-common/selecting_ispell_wordlist_default:
  dictionaries-common/ispell-autobuildhash-message:
  dictionaries-common/old_wordlist_link: true
* dictionaries-common/default-wordlist: francais (French)
  dictionaries-common/debconf_database_corruption:
* dictionaries-common/default-ispell: