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: checking emacs version Date: Tue, 24 Feb 2009 17:40:37 +0000 Organization: SunSITE.dk - Supporting Open source Message-ID: <49a43116$0$90273$14726298@news.sunsite.dk> References: <643cd3d3-5a51-41ce-b830-b71f27b59666@h5g2000yqh.googlegroups.com> 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 1235500864 7211 80.91.229.12 (24 Feb 2009 18:41:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 24 Feb 2009 18:41:04 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Feb 24 19:42:21 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 1Lc2EH-0007an-LZ for geh-help-gnu-emacs@m.gmane.org; Tue, 24 Feb 2009 19:42:05 +0100 Original-Received: from localhost ([127.0.0.1]:51373 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lc2Cw-0003wd-KD for geh-help-gnu-emacs@m.gmane.org; Tue, 24 Feb 2009 13:40:42 -0500 Original-Path: news.stanford.edu!headwall.stanford.edu!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!news.tele.dk!news.tele.dk!small.news.tele.dk!feed118.news.tele.dk!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail User-Agent: Mozilla-Thunderbird 2.0.0.19 (X11/20090103) Original-Newsgroups: gnu.emacs.help In-Reply-To: Original-Lines: 22 Original-NNTP-Posting-Host: 62.56.69.13 Original-X-Trace: news.sunsite.dk DXC=1G[Z9m04ggWKPm>CYcV_aDWTU^G4?`YPaHgJ^6PfEX]01T`Rm1cHX Original-X-Complaints-To: staff@sunsite.dk Original-Xref: news.stanford.edu gnu.emacs.help:167027 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:62329 Archived-At: Leo wrote: > On 2009-02-24 02:59 +0000, Eric wrote: >> I'm writing an .emacs file that will need to work under a few >> different versions of emacs, and wanted to ask what the most reliable >> method of checking the current emacs version. Is a simple string >> search in (emacs-version) acceptable, or is there a more robust way of >> doing it? > > `system-type' > >> Thanks, >> Eric > Under xemacs, I use (setq custom-file (concat "~/.xemacs/custom-" (symbol-name system-type) ".el")) This allows me to have a different customisation file for each platform I use. HTH, Colin S. Miller -- Replace the obvious in my email address with the first three letters of the hostname to reply.