From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.bugs Subject: Re: ispell-complete-word in spanish Date: Tue, 10 Jan 2006 13:53:44 -0700 Message-ID: References: <40ee7a700601100239v60bcfba9j@mail.gmail.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1136926575 6898 80.91.229.2 (10 Jan 2006 20:56:15 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 10 Jan 2006 20:56:15 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jan 10 21:56:11 2006 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EwQXB-0007fd-E9 for geb-bug-gnu-emacs@m.gmane.org; Tue, 10 Jan 2006 21:56:04 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EwQZ9-0003z5-1G for geb-bug-gnu-emacs@m.gmane.org; Tue, 10 Jan 2006 15:58:03 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EwQYO-0003tf-GP for bug-gnu-emacs@gnu.org; Tue, 10 Jan 2006 15:57:16 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EwQXz-0003oA-CP for bug-gnu-emacs@gnu.org; Tue, 10 Jan 2006 15:57:15 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EwQXz-0003o7-9O for bug-gnu-emacs@gnu.org; Tue, 10 Jan 2006 15:56:51 -0500 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtp (TLS-1.0:RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1EwQaO-0003aH-N3 for bug-gnu-emacs@gnu.org; Tue, 10 Jan 2006 15:59:21 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1EwQVA-0007Di-Sc for bug-gnu-emacs@gnu.org; Tue, 10 Jan 2006 21:53:57 +0100 Original-Received: from 207.167.42.60 ([207.167.42.60]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 10 Jan 2006 21:53:56 +0100 Original-Received: from ihs_4664 by 207.167.42.60 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 10 Jan 2006 21:53:56 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: bug-gnu-emacs@gnu.org Original-Lines: 55 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 207.167.42.60 User-Agent: Mozilla Thunderbird 0.9 (X11/20041105) X-Accept-Language: en-us, en In-Reply-To: <40ee7a700601100239v60bcfba9j@mail.gmail.com> X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:14705 Archived-At: Hamilton Temple wrote: > In GNU Emacs 21.4.1 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars) > of 2005-12-15 on icaro > configured using `configure --prefix=/usr --host=i686-pc-linux-gnu > --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share > --sysconfdir=/etc --localstatedir=/var/lib --with-x --with-xpm > --with-jpeg --with-tiff --with-gif --with-png --with-x-toolkit=athena > --build=i686-pc-linux-gnu' > Important settings: > value of $LC_ALL: es_ES@euro > value of $LC_COLLATE: nil > value of $LC_CTYPE: nil > value of $LC_MESSAGES: nil > value of $LC_MONETARY: nil > value of $LC_NUMERIC: nil > value of $LC_TIME: nil > value of $LANG: es_ES@euro > locale-coding-system: iso-latin-9 > default-enable-multibyte-characters: t > > Please describe exactly what actions triggered the bug > and the precise symptoms of the bug: > > I'm not sure if this is an emacs bug or a badly configured ispell. My > ispell configuration is: > > (setq-default ispell-program-name "aspell") > ;;(setq-default ispell-program-name "ispell") > (setq ispell-dictionary "castellano") > (setq ispell-complete-word-dict "/usr/share/dict/spanish") > > Ispell/Aspell checks spelling in words with accentuated chars correctly. > My problem > is related to ispell-complete-word and flyspell. Flyspell/Aspell > doesn't recognizes accentuated > chars. If I have the word "drástico" and call ispell-complete-word , > then It uses > "stico" as "search string". That occurs without mattering where the > accentuated > vowel is inside the word. In Latin-9, á is \341, which is in both the CASECHARS and NOT-CASECHARS regexps of the "castellano" entry in ispell-dictionary-alist. But the call to (ispell-get-word nil "\\*") fails here to find the beginning of the word and stops at the accented character: ;; move to front of word (re-search-backward ispell-not-casechars (point-min) 'start) However, I can get it to work by making ispell-decode-string a no-op: (defun ispell-decode-string (str) str) -- Kevin Rodgers