On Thu, Dec 27, 2012 at 03:08:15AM +0100, Luca Capello wrote:
> did not worked in emacs-snapshot.  The attached patches do the trick:

I am not sure about some parts.

> 
> --8<---------------cut here---------------start------------->8---
> diffstat for hunspell-en-us_20070829-6 hunspell-en-us_20070829-7
> 
>  debian/hunspell-en-us.info-hunspell      |    4 ++++
>  debian/hunspell-en-us.info-myspell       |    1 -
>  hunspell-en-us-20070829/debian/changelog |   11 +++++++++++
>  hunspell-en-us-20070829/debian/rules     |    2 +-
>  4 files changed, 16 insertions(+), 2 deletions(-)
> 
> reverted:
> --- hunspell-en-us-20070829/debian/hunspell-en-us.info-myspell
> +++ hunspell-en-us-20070829.orig/debian/hunspell-en-us.info-myspell
> @@ -1 +0,0 @@
> -DICT en US en_US
> diff -u hunspell-en-us-20070829/debian/rules 
> hunspell-en-us-20070829/debian/rules
> --- hunspell-en-us-20070829/debian/rules
> +++ hunspell-en-us-20070829/debian/rules
> @@ -28,7 +28,7 @@
>       dh_clean -k 
>       dh_installdirs
>  
> -     installdeb-myspell --srcdir=$(CURDIR)
> +     installdeb-hunspell
>  
>  binary-arch: build install
>  
> diff -u hunspell-en-us-20070829/debian/changelog 
> hunspell-en-us-20070829/debian/changelog
> --- hunspell-en-us-20070829/debian/changelog
> +++ hunspell-en-us-20070829/debian/changelog
> @@ -1,3 +1,14 @@
> +hunspell-en-us (20070829-7) UNRELEASED; urgency=low
> +
> +  * debian/hunspell-en-us.info-hunspell:
> +    + new file for emacsen support (Closes: #NNN).
> +  * debian/hunspell-en-us.info-myspell:
> +    - remove.
> +  * debian/rules:
> +    + s/installdeb-myspell/installdeb-hunspell/.
> +
> + -- Luca Capello <[email protected]>  Thu, 27 Dec 2012 00:13:06 +0100
> +
>  hunspell-en-us (20070829-6) unstable; urgency=low
>  
>    * provide also myspell-dictionary-en-us for myspell-en-us
> only in patch2:
> unchanged:
> --- hunspell-en-us-20070829.orig/debian/hunspell-en-us.info-hunspell
> +++ hunspell-en-us-20070829/debian/hunspell-en-us.info-hunspell
> @@ -0,0 +1,4 @@
> +Language: american (American English)
> +Hash-Name: en_US
> +Emacsen-Name: american
> +Coding-System: iso-8859-1
> --8<---------------cut here---------------end--------------->8---

This one's clear.

> And since dictionaries-common does not integrate with emacs-snasphot:

Why should we care about emacs-snapshot? And why not change dictionaries-common
instead?

> (setq ispell-dictionary "american")
> ;;; from /usr/share/emacs/site-lisp/dictionaries-common/debian-ispell.el
> (defvar debian-hunspell-only-dictionary-alist nil
>   "Alist of Debian installed hunspell dicts and properties.
> Its value will be used to set `ispell-dictionary-alist' after
> ispell.el is loaded when hunspell is in use.
> Do not change this variable directly. It is autogenerated
> From data supplied by hunspell dictionaries maintainers.")
> (if (file-exists-p "/var/cache/dictionaries-common/emacsen-ispell-dicts.el")
>     (load "/var/cache/dictionaries-common/emacsen-ispell-dicts.el"))
> ;;; emacs-snapshot_20121224-1 does not have 
> `ispell-find-hunspell-dictionaries',
> ;;; which means that `ispell-dictionary-alist' will always be the same as
> ;;; `ispell-dictionary-base-alist' and 'local' dictionaries will be in 
> ;;; `ispell-local-dictionary-alist'
> (setq ispell-local-dictionary-alist debian-hunspell-only-dictionary-alist)

to be added where?

Regards,

Rene


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to