From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Egli Subject: Re: TaskJuggler3, revisited Date: Mon, 08 Nov 2010 15:23:13 +0100 Message-ID: <871v6vgai6.fsf@saadawi.sbszh.ch> References: <94AF83C1-39B7-449F-BCF5-F0CA3B3031EE@yahoo.com> <955D1A6F-FB61-4AF2-985B-C2FC40096351@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from [140.186.70.92] (port=54989 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PFSd8-0002mI-0P for emacs-orgmode@gnu.org; Mon, 08 Nov 2010 09:23:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PFSd6-0006vd-VY for emacs-orgmode@gnu.org; Mon, 08 Nov 2010 09:23:29 -0500 Received: from lo.gmane.org ([80.91.229.12]:58789) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PFSd6-0006v7-MA for emacs-orgmode@gnu.org; Mon, 08 Nov 2010 09:23:28 -0500 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PFSd4-0005Zz-W2 for emacs-orgmode@gnu.org; Mon, 08 Nov 2010 15:23:27 +0100 Received: from gateway01.sbszh.ch ([217.162.18.85]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 08 Nov 2010 15:23:26 +0100 Received: from christian.egli by gateway01.sbszh.ch with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 08 Nov 2010 15:23:26 +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 John Hendy writes: > On Fri, Nov 5, 2010 at 7:29 AM, Anthony Lander wrote: > > If you grabbed the code I wrote, you can export the file, and > compile it directly with tj3 using C-c e J, saving a step. > > That would be awesome. On C-c e j the current exporter just exports to tj2. On C-c e J it opens the TaskJuggler GUI (which compiles and visualizes). Now for tj3 I would assume that a corresponding action would be to let tj3 compile the exported tjp file and open the resulting reports(s), be it in a browser or a text editor. In theory we would probably need another key binding to just compile the tjp file. This is similar to the LaTeX exporter where you can (1) just export, (2) process the exported LaTeX and (3) open the resulting PDF. Opening report files (text or html) should be fairly simple using org-open-file. The hard part is knowing what files to open without having to parse the report definition to figure out the file names. Maybe the output of tj3 gives a hint what report files were produced. > - swap out the default export with the code below and run "tj3 > tj3-test.tjp" and get a nice html report! > --- If you're looking for a default tj3 export... perhaps > start with what's below? > > But note that I have to do some manual steps on the .tjp before > compiling with tj3. My main issue is defining the report. How do you > define the report manually in the .org file or elsewhere so that tj3 > doesn't try it on the default tj2 report instead. When I do C-c e J > currently, I get no output files; essentially it's just a silent fail. Currently the way to define reports is through the customize variable. But this is then used for all taskjuggler exports. To support file specific reports I was thinking that we should use the #+BEGIN_foo mechanism, i.e. introduce a TaskJuggler blocks with #+BEGIN_TaskJuggler and #+END_TaskJuggler. These could then be used for example to define reports. This would require some changes to org-exp.el. Thoughts? Ideas? Christian -- Christian Egli Swiss Library for the Blind, Visually Impaired and Print Disabled Grubenstrasse 12, CH-8045 Zürich, Switzerland