From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: how to compare org-mode version to current file needs Date: Wed, 16 Mar 2011 14:21:19 +0000 Message-ID: <874o7316zk.fsf@ucl.ac.uk> References: <4D80B033.2000308@gmx.net> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=46138 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PzrbF-0000RG-1z for emacs-orgmode@gnu.org; Wed, 16 Mar 2011 10:21:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PzrbE-0003oC-0H for emacs-orgmode@gnu.org; Wed, 16 Mar 2011 10:21:20 -0400 Received: from vscane-b.ucl.ac.uk ([144.82.108.141]:50945) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PzrbD-0003nw-Rj for emacs-orgmode@gnu.org; Wed, 16 Mar 2011 10:21:19 -0400 In-Reply-To: <4D80B033.2000308@gmx.net> (Olaf Hamann's message of "Wed, 16 Mar 2011 13:42:27 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "Olaf.Hamann" Cc: emacs-orgmode@gnu.org "Olaf.Hamann" 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)