From mboxrd@z Thu Jan 1 00:00:00 1970 From: Achim Gratz Subject: Re: Symbol's value as variable is void: org-version Date: Sat, 28 Apr 2012 23:34:08 +0200 Message-ID: <87r4v75ynj.fsf@Rainer.invalid> References: <548693E5-0047-4B87-AF0F-C31EE721359D@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:33064) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SOFHh-0003JD-UH for emacs-orgmode@gnu.org; Sat, 28 Apr 2012 17:34:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SOFHd-0007Q6-JT for emacs-orgmode@gnu.org; Sat, 28 Apr 2012 17:34:29 -0400 Received: from plane.gmane.org ([80.91.229.3]:47192) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SOFHd-0007Pk-D2 for emacs-orgmode@gnu.org; Sat, 28 Apr 2012 17:34:25 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SOFHY-0002JY-76 for emacs-orgmode@gnu.org; Sat, 28 Apr 2012 23:34:20 +0200 Received: from pd9eb4a28.dip.t-dialin.net ([217.235.74.40]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 28 Apr 2012 23:34:20 +0200 Received: from Stromeko by pd9eb4a28.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 28 Apr 2012 23:34:20 +0200 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 Carsten Dominik writes: > I am sure I missed the discussion about this - but I do not understand > why org-version is not loaded by org.el by default. Really, this > variable belongs into org.el, and if it is not there, org.el should > require org-version.el. The variable _is_ in org.el (currently by way of a defvaralias), but the value is supplied by an autoload. That seemed to be the cleanest way to inject the version string from Git into it, especially considering that the same code should be in Emacs and not look for a Git directory during compilation or at runtime. Currently, if you do not have the autoloads generated, you don't get a version number — "make autoloads" is doing that and I#ll have something ready for folks without make soon. Looking directly for a Git version number if and only if there is no autoload definition present (using orgmode uncompiled) will be also solved, but getting it to work correctly takes time. I've just installed XEmacs to be able to test it myself and unfortunately what is working in Emacs 23/24 can't be used directly in XEmacs, so I'll have to supply compatibility functions or chose a different implementation. Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ SD adaptation for Waldorf microQ V2.22R2: http://Synth.Stromeko.net/Downloads.html#WaldorfSDada