From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Colin S. Miller" Newsgroups: gmane.emacs.help Subject: Re: ispell-dictionaries: Different Linuxes, different names :( Date: Sun, 06 Sep 2009 17:22:18 +0100 Organization: SunSITE.dk - Supporting Open source Message-ID: <4aa3e1bb$0$290$14726298@news.sunsite.dk> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1252255244 2145 80.91.229.12 (6 Sep 2009 16:40:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 6 Sep 2009 16:40:44 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Sep 06 18:40:37 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MkKn7-0005te-8a for geh-help-gnu-emacs@m.gmane.org; Sun, 06 Sep 2009 18:40:37 +0200 Original-Received: from localhost ([127.0.0.1]:43298 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MkKn6-00008H-I4 for geh-help-gnu-emacs@m.gmane.org; Sun, 06 Sep 2009 12:40:36 -0400 Original-Path: news.stanford.edu!usenet.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!newsgate.news.xs4all.nl!news2.euro.net!news-out1.kabelfoon.nl!newsfeed.kabelfoon.nl!bandi.nntp.kabelfoon.nl!news.banetele.no!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail User-Agent: Mozilla-Thunderbird 2.0.0.22 (X11/20090706) Original-Newsgroups: gnu.emacs.help In-Reply-To: Original-Lines: 52 Original-NNTP-Posting-Host: 62.56.57.252 Original-X-Trace: news.sunsite.dk DXC=NgQko\j3d33RV[Kf06ReB9YSB=nbEKnk; Wk1N3n:8HMEID8>TP:HdoDF80lY; <; ^_2048 Original-X-Complaints-To: staff@sunsite.dk Original-Xref: news.stanford.edu gnu.emacs.help:172769 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:67907 Archived-At: Christian Herenz wrote: > Hi, > > I have to use different workstations, where different linux flavours are > installed. The problem is, that different distros do different stuff. > For example, the ispell dictionary for german (reformed-spelling) is > called "german-new" in debian, in opensuse it is "german". > > In my .emacs I used as a discriminator the workstations name, but this > is not very efficient if you are working on more than two stations. > > Is there a way to discriminate different distros in .emacs? Especially > "opensuse" and "debian"... > > Greetings, > Christian Christian, In Debian, the file /etc/debian_version will exist. On Debian-derived systems, the file /etc/apt/sources.list will almost certainly exist. Likewise on RedHat based systems (and any other systems that use yum), /etc/yum.conf wil exist. For YaST based systems including SuSE, /etc/yast/control.xml will exist, AFAIK. I don't have access to a SuSE based system to verify this. The other way to check what the best dictionary is to check for /usr/lib/aspell/ or /usr/lib/ispell/.hash Or have aspell/ispell check it for you by examining the return code of ispell -d -e < /dev/null aspell -d -a < /dev/null HTH, Colin S. Miller -- Replace the obvious in my email address with the first three letters of the hostname to reply.