From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Christopher J. White" Subject: Re: can't find org-version? Date: Tue, 04 Sep 2012 07:34:35 -0700 Message-ID: <5046117B.9050400@grierwhite.com> References: <878vcrkbuu.fsf@jnanam.net> <1346657034.96590.YahooMailNeo@web29806.mail.ird.yahoo.com> <5044C335.4090004@grierwhite.com> <1346757283.96924.YahooMailNeo@web29806.mail.ird.yahoo.com> <5685.1346760278@alphaville> <1346764390.60712.YahooMailNeo@web29805.mail.ird.yahoo.com> Reply-To: orgmode@grierwhite.com Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:36409) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T8uDJ-0007be-Nb for emacs-orgmode@gnu.org; Tue, 04 Sep 2012 10:34:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T8uDE-0006Ge-1G for emacs-orgmode@gnu.org; Tue, 04 Sep 2012 10:34:49 -0400 Received: from mail7c25.carrierzone.com ([64.29.147.17]:49797) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T8uDD-0006GV-QQ for emacs-orgmode@gnu.org; Tue, 04 Sep 2012 10:34:43 -0400 Received: from cwhite-mbpro.local (mobile-198-228-209-003.mycingular.net [198.228.209.3]) (authenticated bits=0) by mail7c25.carrierzone.com (8.13.6/8.13.1) with ESMTP id q84EYZNn002739 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 4 Sep 2012 14:34:41 GMT In-Reply-To: <1346764390.60712.YahooMailNeo@web29805.mail.ird.yahoo.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org So in version 7.8 and earlier, org-version is both a variable and a=20 function. The function is not useful to coders because it displays the=20 version string as a message: (org-version) "Org-mode version 7.8.03 (release_7.8.03.437.g60ca.dirty)" org-version "7.8.03" I used org-version as a variable because there was an incompatibility=20 between 7.7 and 7.8 for the function org-export-remove-or-extract-drawers. So, what is the proper way to get the version number in 7.9? It seems=20 awkward to me that all clients would have to require something other=20 than just "org" to get the version number, but I can live with that. What I don't want to do, though, is mess around with testing for the=20 existence of various functions and variables just to figure out where to=20 get the version number from. Why not just keep the variable org-version around just like in 7.8 and=20 earlier? Otherwise, can someone please post a code snippet that gets me the=20 version string "7.8.03" that will work with 7.7, 7.8 and 7.9? ...cj On 9/4/12 6:13 AM, Giovanni Ridolfi wrote: > Da: Nick Dokos > > Inviato: Marted=EC 4 Settembre 2012 14:04 > >> Giovanni Ridolfi wrote: >>> Would you please try to add (require 'org-install) instead of (requir= e 'org) and see if org-toodledo works? >>> >>>> As mentioned in one of the above threads, the version of a package i= s pretty fundamental >>>> and I'd expect it to be provided by the base require. >>> >>> The variable org-version *is indeed provided* but not in the file you= r code expects it. >>> >> Is it? I can only find a function named org-version, not a variable. > > Hi, Nick, > > you're right, therfore, obviously ;-) I was wrong. > > The function is org-version and it gets its arguments from the variabl= es > org-release > and > org-git-version > defined in the file lisp/org-version.el > > thanks for pointing it up. > > cheers, > Giovanni > > >