[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Determine what version and make settings accordingly
From: |
Harry Putnam |
Subject: |
Re: Determine what version and make settings accordingly |
Date: |
Sun, 16 Nov 2014 19:51:49 -0500 |
User-agent: |
Gnus/5.13001 (Ma Gnus v0.10) Emacs/24.3 (gnu/linux) |
dieter@duenenhof-wilhelm.de (H. Dieter Wilhelm) writes:
> Harry Putnam <reader@newsguy.com> writes:
>
>> Probably kind of basic... but not to me.
>>
>> I'm running emacs24 (installed from debian pkg system) and now want to
>> also run emacs-25... (installed from bzr repo).
>
> (if (>= emacs-major-version 25) ; this is the test,
> the "if"
> (message "You are running Emacs 25! Lucky you.") ; This is the "then"
> (ding) ; From here on is the
> "else"
> (message "Time to upgrade, don't you think?"))
>
> emacs-version
> emacs-minor-version
>
> Is that what you are looking for?
Yes it is... thanks much.