From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Rustom Mody" Newsgroups: gmane.emacs.help Subject: finding emacs version Date: Mon, 14 May 2007 22:02:51 +0530 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2097691374==" X-Trace: sea.gmane.org 1179160394 12296 80.91.229.12 (14 May 2007 16:33:14 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 14 May 2007 16:33:14 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon May 14 18:33:12 2007 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 1HndTx-0006xM-RD for geh-help-gnu-emacs@m.gmane.org; Mon, 14 May 2007 18:33:10 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hndbj-0006sR-Mi for geh-help-gnu-emacs@m.gmane.org; Mon, 14 May 2007 12:41:11 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HndbU-0006rv-Td for help-gnu-emacs@gnu.org; Mon, 14 May 2007 12:40:56 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HndbT-0006rV-Fw for help-gnu-emacs@gnu.org; Mon, 14 May 2007 12:40:56 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HndbT-0006rO-Ch for help-gnu-emacs@gnu.org; Mon, 14 May 2007 12:40:55 -0400 Original-Received: from an-out-0708.google.com ([209.85.132.240]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HndTg-0001RW-Nx for help-gnu-emacs@gnu.org; Mon, 14 May 2007 12:32:52 -0400 Original-Received: by an-out-0708.google.com with SMTP id c17so502604anc for ; Mon, 14 May 2007 09:32:52 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; b=CM6H+I4QThFDqDbLMKQioXSRYDQV6B3Q2GfrAv/G6F0TDmUFGzmVI5MuPU1NuPPFhCCm3lVFHvkY/9f3W/F2uEXUESN30IXaeF0esd8agnvmbuCYc+GG5APVEF/MqVZpBLBjTeHx56JxAbFPha1hemTMLr2MIBMf7y/XYTTv7cc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=W/LPadIdghy12v92TWUMDMj4/j82h9I6V5kD8v5IFl3hhS30MApU0kzjdsVan0+IJqPX4anDOewLqTv/RplTz8F66Vsh8oHUKlpqfh0BaB48oiwrKQHhgA6aW172ppMJTChyCRynaDzak89yytPFPArI/nOPNBTEFiyH4K6U27M= Original-Received: by 10.100.199.12 with SMTP id w12mr4637525anf.1179160371486; Mon, 14 May 2007 09:32:51 -0700 (PDT) Original-Received: by 10.100.120.20 with HTTP; Mon, 14 May 2007 09:32:51 -0700 (PDT) X-detected-kernel: Linux 2.6 (newer, 2) 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:43960 Archived-At: --===============2097691374== Content-Type: multipart/alternative; boundary="----=_Part_48743_6815540.1179160371402" ------=_Part_48743_6815540.1179160371402 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline How do you find out which emacs version is running in elisp? I want to do: if version is emacs-21 some code else some other code ------=_Part_48743_6815540.1179160371402 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline How do you find out which emacs version is running in elisp?

I want to do:

if version is emacs-21
    some code
else
    some other code


 
------=_Part_48743_6815540.1179160371402-- --===============2097691374== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ help-gnu-emacs mailing list help-gnu-emacs@gnu.org http://lists.gnu.org/mailman/listinfo/help-gnu-emacs --===============2097691374==--