From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Eli Zaretskii" Newsgroups: gmane.emacs.devel Subject: Re: flyspell bug Date: Tue, 10 May 2005 06:37:53 +0300 Message-ID: <01c55511$Blat.v2.4$cb2c24c0@zahav.net.il> References: <01c5531e$Blat.v2.4$ea8d9a00@zahav.net.il> <87zmv3rg09.fsf_-_@jurta.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7BIT X-Trace: sea.gmane.org 1115697739 9923 80.91.229.2 (10 May 2005 04:02:19 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 10 May 2005 04:02:19 +0000 (UTC) Cc: S.J.Eglen@damtp.cam.ac.uk, mange@freemail.hu, public@heslin.eclipse.co.uk, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue May 10 06:02:15 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DVLwE-0006n0-AE for ged-emacs-devel@m.gmane.org; Tue, 10 May 2005 06:01:42 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DVM4g-0004Sh-Pr for ged-emacs-devel@m.gmane.org; Tue, 10 May 2005 00:10:26 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DVM4R-0004RR-Ox for emacs-devel@gnu.org; Tue, 10 May 2005 00:10:11 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DVM4Q-0004R9-GB for emacs-devel@gnu.org; Tue, 10 May 2005 00:10:10 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DVLym-0002xv-7Q for emacs-devel@gnu.org; Tue, 10 May 2005 00:04:20 -0400 Original-Received: from [192.114.186.66] (helo=romy.inter.net.il) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DVLhz-0004TK-5O for emacs-devel@gnu.org; Mon, 09 May 2005 23:46:59 -0400 Original-Received: from zaretski (IGLD-83-130-243-144.inter.net.il [83.130.243.144]) by romy.inter.net.il (MOS 3.5.6-GR) with ESMTP id BEJ45282 (AUTH halo1); Tue, 10 May 2005 06:40:34 +0300 (IDT) Original-To: Juri Linkov X-Mailer: emacs 22.0.50 (via feedmail 8 I) and Blat ver 2.4 In-reply-to: <87zmv3rg09.fsf_-_@jurta.org> (message from Juri Linkov on Tue, 10 May 2005 03:06:48 +0300) 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: news.gmane.org gmane.emacs.devel:36928 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:36928 > From: Juri Linkov > Date: Tue, 10 May 2005 03:06:48 +0300 > Cc: public@heslin.eclipse.co.uk, mange@freemail.hu, S.J.Eglen@damtp.cam.ac.uk > > > Thanks, I installed a slightly different change (using locate-file > > instead of executable-find). > > Now with using a non-default dictionary ispell.el fails with the > error message telling that ispell can't find a dictionary in > /usr/lib/aspell-0.60/. That's becuase ispell and aspell have > different sets of dictionaries with different names. Sorry about that. I don't have aspell installed so I couldn't test that, and people who were participating in the thread suggested that this was the right solution. > ispell.el shouldn't insist on using "aspell" instead of "ispell" > even when aspell executable happens to be in exec-path. I asked Richard and he said that's what we want, since aspell is newer and is a GNU package. > Perhaps the following patch will do what was intended to fix the > original problem: > > Index: lisp/textmodes/ispell.el > =================================================================== > RCS file: /cvsroot/emacs/emacs/lisp/textmodes/ispell.el,v > retrieving revision 1.162 > diff -u -r1.162 ispell.el > --- lisp/textmodes/ispell.el 7 May 2005 16:04:39 -0000 1.162 > +++ lisp/textmodes/ispell.el 10 May 2005 00:05:05 -0000 > @@ -302,7 +302,8 @@ > :group 'ispell) > > (defcustom ispell-program-name > - (or (locate-file "aspell" exec-path exec-suffixes 'file-executable-p) > + (or (and ispell-really-aspell > + (locate-file "aspell" exec-path exec-suffixes 'file-executable-p)) > "ispell") ??? Does this really work? AFAIK, ispell-really-aspell is set when ispell.el invokes the speller for the first time, not before that. So this defcustom wuill never try aspell, I think. Am I missing something?