emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Christian Egli <christian.egli@sbs.ch>
To: emacs-orgmode@gnu.org
Subject: Re: TaskJuggler3, revisited
Date: Mon, 08 Nov 2010 15:23:13 +0100	[thread overview]
Message-ID: <871v6vgai6.fsf@saadawi.sbszh.ch> (raw)
In-Reply-To: AANLkTimcT6SGoOgz-OVKhSfWAvqffe=EnEWvVKvM9TcF@mail.gmail.com

John Hendy <jw.hendy@gmail.com> writes:

> On Fri, Nov 5, 2010 at 7:29 AM, Anthony Lander <anthonylander@yahoo.com> 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

  reply	other threads:[~2010-11-08 14:23 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-02  2:05 TaskJuggler3, revisited Anthony Lander
2010-11-04 21:24 ` John Hendy
2010-11-05 12:29   ` Anthony Lander
2010-11-05 15:01     ` John Hendy
2010-11-08 14:23       ` Christian Egli [this message]
2010-11-08 14:02   ` Christian Egli

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=871v6vgai6.fsf@saadawi.sbszh.ch \
    --to=christian.egli@sbs.ch \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).