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: Wed, 11 May 2005 15:40:12 +0300 Message-ID: <01c55626$Blat.v2.4$b81ecf20@zahav.net.il> References: <01c5531e$Blat.v2.4$ea8d9a00@zahav.net.il> <87zmv3rg09.fsf_-_@jurta.org> <01c55511$Blat.v2.4$cb2c24c0@zahav.net.il> <87is1roent.fsf@jurta.org> <01c55599$Blat.v2.4$1fc21ee0@zahav.net.il> <873bsukw6j.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 1115816052 9235 80.91.229.2 (11 May 2005 12:54:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 11 May 2005 12:54:12 +0000 (UTC) Cc: public@heslin.eclipse.co.uk, mange@freemail.hu, s.j.eglen@damtp.cam.ac.uk, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed May 11 14:54:10 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DVqhy-0002H1-Cg for ged-emacs-devel@m.gmane.org; Wed, 11 May 2005 14:53:02 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DVqqi-0000ff-3j for ged-emacs-devel@m.gmane.org; Wed, 11 May 2005 09:02:04 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DVqod-0000P2-Jk for emacs-devel@gnu.org; Wed, 11 May 2005 08:59:57 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DVqoS-0000KZ-5q for emacs-devel@gnu.org; Wed, 11 May 2005 08:59:44 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DVqoQ-0000F9-Tc for emacs-devel@gnu.org; Wed, 11 May 2005 08:59:43 -0400 Original-Received: from [192.114.186.66] (helo=romy.inter.net.il) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DVqii-0000pn-J1 for emacs-devel@gnu.org; Wed, 11 May 2005 08:53:48 -0400 Original-Received: from zaretski (IGLD-83-130-254-105.inter.net.il [83.130.254.105]) by romy.inter.net.il (MOS 3.5.6-GR) with ESMTP id BES66595 (AUTH halo1); Wed, 11 May 2005 15:43:13 +0300 (IDT) Original-To: juri@jurta.org X-Mailer: emacs 22.0.50 (via feedmail 8 I) and Blat ver 2.4 In-reply-to: <873bsukw6j.fsf@jurta.org> (message from Juri Linkov on Wed, 11 May 2005 11:23: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:36971 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:36971 > From: Juri Linkov > Date: Wed, 11 May 2005 11:23:48 +0300 > > ispell and aspell use different dictionaries. Changing the default > ispell program name from "ispell" to "aspell" is an incompatible > change for users configured Emacs to use ispell dictionaries, > not aspell dictionaries. I understand that. What I need is a way to distinguish between three situations: (1) user doesn't have aspell installed (2) user has aspell installed, but configured it to use ispell's dictionaries (3) user has aspell installed and wants to use aspell's dictionaries I know how to detect (1) -- use locate-file or similar technique to look for aspell. But how to distinguish between (2) and (3)? > `ispell-program-name' can be changed > automatically to "aspell" only when `ispell-check-version' detects > aspell's implemention of ispell, i.e. a program for which `ispell -v' > returns: > > @(#) International Ispell Version 3.1.20 (but really Aspell 0.50.5) So the conditions for (2) should be: (a) locate-file finds an executable `ispell' (b) that `ispell', when invoked with -v outputs the above banner Is that right? Are we sure that no user will use aspell with ispell's dictionaries _except_ through the `ispell' alias?