emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] how to compare org-mode version to current file needs


From: Eric S Fraga
Subject: Re: [O] how to compare org-mode version to current file needs
Date: Wed, 16 Mar 2011 14:21:19 +0000
User-agent: Gnus/5.110014 (No Gnus v0.14) Emacs/24.0.50 (gnu/linux)

"Olaf.Hamann" <address@hidden> writes:

> Hello,
>
> is there any org-mode expression for saying "this org-file needs
> org-version > xxx"
> which will compare current needs of the file to used orgmode at
> org-file startup
> and present a little message to the user?

not that I know of.

> I think, it could be done with an emacs-lisp block comparing
> org-version to a certain string,
> but I have to express
>
> this org-file needs org-version >=  "Org-mode version 7.5
> (release_7.5.47.g4d9f2.dirty)"
>
> and I don't know what or how to compare (string compare or git
> timeline or so?).

You might want to compare against the string =org-version= (as opposed to
the output from the function of the same name).  This will be the last
release version and will not include the number of commits etc from that
release onwards.  I would think that comparing to an actual release should
be the finest granularity you should use?

-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1
: using Org-mode version 7.5 (release_7.5.55.g87c42.dirty)



reply via email to

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