From mboxrd@z Thu Jan 1 00:00:00 1970 From: Achim Gratz Subject: Re: Two questions about using a =#+begin_src emacs-lisp= block Date: Tue, 22 Feb 2011 19:45:01 +0100 Message-ID: <87vd0boqmq.fsf@Rainer.invalid> References: <874o7x5ms7.fsf@gmail.com> <87k4gt4183.fsf@gmail.com> <87d3mkc5br.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=50459 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PrxEb-0005Q6-LC for emacs-orgmode@gnu.org; Tue, 22 Feb 2011 13:45:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PrxEa-0004uu-7T for emacs-orgmode@gnu.org; Tue, 22 Feb 2011 13:45:17 -0500 Received: from lo.gmane.org ([80.91.229.12]:55224) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PrxEZ-0004sy-TI for emacs-orgmode@gnu.org; Tue, 22 Feb 2011 13:45:16 -0500 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PrxEY-0007Y7-1A for emacs-orgmode@gnu.org; Tue, 22 Feb 2011 19:45:14 +0100 Received: from p57aadfac.dip.t-dialin.net ([87.170.223.172]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 22 Feb 2011 19:45:14 +0100 Received: from Stromeko by p57aadfac.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 22 Feb 2011 19:45:14 +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: emacs-orgmode@gnu.org "Eric Schulte" writes: > if you are worried that you don't have the correct version of Org-mode > installed you can check the output of the `org-version' function. Mine > reads > > "Org-mode version 7.4 (release_7.4.510.g1e35)" Note: the SHA1 for the git commit is only shown if Orgmode is installed into a subdirectory of the git working tree. I remember that this puzzled me at the beginning... After a few tries I've now set up as follows: - I'm tracking two branches local-maint->origin/maint (latest release) local->origin/master (developer version) with rebase and just add a single commit on top with customizations to the Makefile to get the install for each branch to the correct location - the latest release version is installed into .../site-lisp/orgmode/ and is the version that gets used when I "just" start emacs - in the git working tree I'm installing the latest developer snapshot into a subdirectory dev-lisp; always compile via make clean install && make clean otherwise emacs might pick up byte-compiled files even though you've changed the sources (by checking out another branch or doing a git pull or just editing something) - keep a file handy with: --8<---------------cut here---------------start------------->8--- ;; -*- lisp-interaction -*- (setq load-path (cons (expand-file-name "~/org-mode/lisp") load-path)) (setq load-path (cons (expand-file-name "~/org-mode/dev-lisp") load-path)) (setq load-path (cdr load-path)) --8<---------------cut here---------------end--------------->8--- load this into emacs and do C-j on one of the first two lines to switch to using either the compiled or uncompiled developer version. The last lines strips the load-path of the first element, which switches back to the "standard" load-path provided you didn't do any other additions to load-path inbetween. This is obviously customizable in several respects, but it works for me and lets me track several stages of orgmode development with minimal effort. Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ SD adaptations for Waldorf Q V3.00R3 and Q+ V3.54R2: http://Synth.Stromeko.net/Downloads.html#WaldorfSDada