help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: finding emacs version


From: Harald Hanche-Olsen
Subject: Re: finding emacs version
Date: Mon, 14 May 2007 19:03:00 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.0 (berkeley-unix)

+ "Rustom Mody" <address@hidden>:

| How do you find out which emacs version is running in elisp?I want
| to do:if version is emacs-21 some codeelse some other code

(cond ((string= (substring emacs-version 0 2) "21")
       code for version 21)
      ((string= (substring emacs-version 0 2) "22")
       code for version 22)
      (t code for other versions))

-- 
* Harald Hanche-Olsen     <URL:http://www.math.ntnu.no/~hanche/>
- It is undesirable to believe a proposition
  when there is no ground whatsoever for supposing it is true.
  -- Bertrand Russell


reply via email to

[Prev in Thread] Current Thread [Next in Thread]