[Top][All Lists]

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

Re: checking emacs version

From: Pascal J. Bourguignon
Subject: Re: checking emacs version
Date: Tue, 24 Feb 2009 19:37:02 +0100
User-agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/22.3 (darwin)

Eric <address@hidden> writes:

> 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?

    emacs-version emacs-major-version emacs-minor-version
    system-type system-name system-configuration
    (when (boundp 'aquamacs-version) aquamacs-version))
("22.3.1" 22 3 darwin "galatea.local" "i386-apple-darwin9.5.0" x nil) ; here.

__Pascal Bourguignon__

reply via email to

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