From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xah Lee Newsgroups: gmane.emacs.help Subject: Re: proper way to determine emacs version in elisp programing? Date: Fri, 14 Aug 2009 04:18:44 -0700 (PDT) Organization: http://groups.google.com Message-ID: <4129c418-6374-4a55-b5f0-1fd470abc5b9@x25g2000prf.googlegroups.com> References: <87hbwbvu77.fsf@iki.fi> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1250258160 5692 80.91.229.12 (14 Aug 2009 13:56:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 14 Aug 2009 13:56:00 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Aug 14 15:55:54 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 1MbxG5-0006TM-QB for geh-help-gnu-emacs@m.gmane.org; Fri, 14 Aug 2009 15:55:53 +0200 Original-Received: from localhost ([127.0.0.1]:45024 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MbxG5-0005cU-B3 for geh-help-gnu-emacs@m.gmane.org; Fri, 14 Aug 2009 09:55:53 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!x25g2000prf.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 15 Original-NNTP-Posting-Host: 76.102.12.87 Original-X-Trace: posting.google.com 1250248725 16195 127.0.0.1 (14 Aug 2009 11:18:45 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Fri, 14 Aug 2009 11:18:45 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: x25g2000prf.googlegroups.com; posting-host=76.102.12.87; posting-account=bRPKjQoAAACxZsR8_VPXCX27T2YcsyMA User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/530.5 (KHTML, like Gecko) Chrome/2.0.172.39 Safari/530.5, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:171971 X-Mailman-Approved-At: Fri, 14 Aug 2009 09:55:31 -0400 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:67146 Archived-At: On Aug 13, 10:30=A0pm, Teemu Likonen wrote: > On 2009-08-13 19:52 (-0700), Xah Lee wrote: > > > what's the proper way to determine emacs version? > > Variables emacs-major-version and emacs-minor-version. They contain an > integer. > > But if you need to check if some feature exists in the system you'd > better check precisely that. For example, check the existence of some > function with (fboundp ...). Thanks. Good points. Xah