From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dan Davison Subject: Re: [ANN] Exporter for taskjuggler Date: Mon, 19 Apr 2010 09:34:48 -0400 Message-ID: <871vebo9af.fsf@stats.ox.ac.uk> References: <87ljdarxpw.fsf@saadawi.sbszh.ch> <874ojbgmi8.fsf@stats.ox.ac.uk> <87wrw3dag8.fsf@saadawi.sbszh.ch> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O3r7n-00009q-HX for emacs-orgmode@gnu.org; Mon, 19 Apr 2010 09:34:55 -0400 Received: from [140.186.70.92] (port=52997 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O3r7m-00008u-5k for emacs-orgmode@gnu.org; Mon, 19 Apr 2010 09:34:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O3r7k-00017H-Im for emacs-orgmode@gnu.org; Mon, 19 Apr 2010 09:34:54 -0400 Received: from markov.stats.ox.ac.uk ([163.1.210.1]:41026) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O3r7k-00016u-5Q for emacs-orgmode@gnu.org; Mon, 19 Apr 2010 09:34:52 -0400 In-Reply-To: <87wrw3dag8.fsf@saadawi.sbszh.ch> (Christian Egli's message of "Mon, 19 Apr 2010 12:05:11 +0200") 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: Christian Egli Cc: emacs-orgmode@gnu.org Christian Egli writes: [...] >> It would also be nice if repeated invocation of >> org-export-as-taskjuggler-and-open on the same project didn't spawn >> multiple TJ instances (TJ v2.4.3 ubuntu). > > Hm, yes. Good idea. Do you have an idea how this could be done easily in > elisp? Is this more the reponsibility of the application? E.g. I just did 'firefox some.png' from the shell and it opened a new tab in a running process. So maybe it's a question of checking whether / requesting that the new ruby implementation has a way of telling it from the shell to open (update?) a project in an already-running TJ process. [...] >> Make it work if `org-odd-levels-only' is in use: >> >> diff --git a/org-taskjuggler.el b/org-taskjuggler.el >> index e887d33..e843dcd 100644 >> --- a/org-taskjuggler.el >> +++ b/org-taskjuggler.el >> @@ -309,7 +309,7 @@ the current node such as the headline, the level, todo state >> information, all the properties, etc." >> (let* ((props (org-entry-properties)) >> (components (org-heading-components)) >> - (level (car components)) >> + (level (nth 1 components)) >> (headline (nth 4 components)) >> (parent-ordered (org-taskjuggler-parent-is-ordered-p))) >> (push (cons "level" level) props) > > Oh, OK, good catch. Does this also work if `org-odd-levels-only' is not > in use? Yes. C-h f org-heading-components says the second element differs from the first only if org-odd-levels-only is set. Dan