From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Agustin Martin Newsgroups: gmane.emacs.devel Subject: Re: Bug 130397 (Was: Emacs - Ispell problem with i[no]german dictionary) Date: Fri, 17 Dec 2004 13:15:15 +0100 Message-ID: <20041217121515.GA2270@agmartin.aq.upm.es> References: <20040517120658.GA6919@agmartin.aq.upm.es> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1103285911 30238 80.91.229.6 (17 Dec 2004 12:18:31 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 17 Dec 2004 12:18:31 +0000 (UTC) Cc: Lionel Elie Mamane , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Dec 17 13:18:23 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CfH3v-0000AW-00 for ; Fri, 17 Dec 2004 13:18:23 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CfHED-00073j-K1 for ged-emacs-devel@m.gmane.org; Fri, 17 Dec 2004 07:29:01 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CfHDM-0006ZQ-Ok for emacs-devel@gnu.org; Fri, 17 Dec 2004 07:28:09 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CfHDK-0006XA-Pr for emacs-devel@gnu.org; Fri, 17 Dec 2004 07:28:07 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CfHDK-0006WQ-C4 for emacs-devel@gnu.org; Fri, 17 Dec 2004 07:28:06 -0500 Original-Received: from [138.100.4.49] (helo=edison.ccupm.upm.es) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CfH25-0003Q5-LK for emacs-devel@gnu.org; Fri, 17 Dec 2004 07:16:30 -0500 Original-Received: from mala.aq.upm.es (Agmartin.aq.upm.es [138.100.41.131]) by edison.ccupm.upm.es (8.12.10/8.12.10) with ESMTP id iBHCFLLN009377; Fri, 17 Dec 2004 13:15:21 +0100 Original-Received: by mala.aq.upm.es (Postfix, from userid 1000) id 9B969631C; Fri, 17 Dec 2004 13:15:15 +0100 (CET) Original-To: 130397@bugs.debian.org Content-Disposition: inline In-Reply-To: <20040517120658.GA6919@agmartin.aq.upm.es> User-Agent: Mutt/1.5.6+20040907i X-MIME-Autoconverted: from 8bit to quoted-printable by edison.ccupm.upm.es id iBHCFLLN009377 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:31236 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:31236 On Mon, May 17, 2004 at 02:06:58PM +0200, Agustin Martin wrote: > My guess is that emacs is handling differently the '=E8' character (In = case of > ancoding problems in the mail, it is the grave lowercase e `e) when typ= ed in > the fr_FR@euro locale than when file is read or typed in the fr_FR loca= le. >=20 No news from upstream about this. Seems that this problem is still present with sid emacs. Since sid dictionaries-common has ispell.el patched to allow any coding-system supported by emacs (including iso-8859-15 for {x}emacs21) I am considerin= g a new ispell.el patch to workaround this latin0-latin1 unification proble= m. I am playing with redefining ispell-get-coding-system function in ispell.= el so dict coding-system is changed to iso-8859-15 if was originally iso-8859-1 and emacs has iso-8859-15 as buffer-file-coding-system, someth= ing like ---------------------------------------- (defun ispell-get-coding-system () (let (ispell-coding-system emacs-coding-system) (setq ispell-coding-system (nth 7 (assoc ispell-dictionary ispell-dictionary-alist))) (setq emacs-coding-system (coding-system-get buffer-file-coding-system 'mime-charset)) (if (and (string-equal emacs-coding-system "iso-8859-15") (string-equal ispell-coding-system "iso-8859-1")) emacs-coding-system ispell-coding-system))) ---------------------------------------- It seems to work for emacs21, but not for xemacs21 (seems a bug of this latter when giving the value of buffer-file-coding-system, just reported = as #285990). This has the advantage that no special entries are needed for latin0 in t= he ispell-dictionary-alist. I will test this a bit more before uploading. If everything seems O.K. an= d nobody opposes I will proceed this way. Suggestions are welcome. I am cc'ing emacs-devel for their info. Cheers, --=20 Agustin