From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: OT: taskjuggler question Date: Thu, 02 Feb 2012 12:13:00 -0500 Message-ID: <12524.1328202780@alphaville> References: <871uqesl0u.fsf@sbs.ch> <4F2949A9.50107@gmail.com> <87pqdyr1lz.fsf@sbs.ch> <87liolr9qq.fsf@sbs.ch> <10926.1328198901@alphaville> <87sjitp5ig.fsf@sbs.ch> Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([140.186.70.92]:54840) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rt0LX-0003wb-70 for emacs-orgmode@gnu.org; Thu, 02 Feb 2012 12:21:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rt0LV-0001s8-ET for emacs-orgmode@gnu.org; Thu, 02 Feb 2012 12:21:19 -0500 Received: from g4t0014.houston.hp.com ([15.201.24.17]:15333) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rt0LV-0001qp-7F for emacs-orgmode@gnu.org; Thu, 02 Feb 2012 12:21:17 -0500 In-Reply-To: Message from Christian Egli of "Thu, 02 Feb 2012 17:24:55 +0100." <87sjitp5ig.fsf@sbs.ch> 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: Christian Egli Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org Christian Egli wrote: > Nick Dokos writes: > > > But I have no TaskJugglerUI executable, which seems to be what the > > exporter tries to call for export-and-open (C-c C-e J): what am I > > missing? > > The TaskJugglerUI exists only if you have taskjuggler2.4 installed. The > exporter predates tj3 and naively assumes that there is a TaskJugglerUI > executable. It should really invoke a browser on the resulting HTML > report[1] when you call export-and-open, at least when you are targeting > tj3. The worst part is that it doesn't even tell the user that something > failed, as it invokes the executable asynchronously using > start-process-shell-command (info: (elisp) Asynchronous Processes). That > way you can continue to work with emacs but emacs doesn't know what > happened to the subprocess. I'll have to do some more research on how to > start a process in the background and still check if it succeeded. > --8<---------------cut here---------------start------------->8--- (setq p (start-process-shell-command "foo" nil "foo")) # (process-status p) exit (process-exit-status p) 127 --8<---------------cut here---------------end--------------->8--- > Thanks > Christian > > Footnotes: > [1] the tricky bit here is of course to find the resulting HTML, as the > name of it is defined in a tj3 report definition. I'd rather refrain > from parsing these report definitions just to find the name of the HTML > file to open. > Yup - a pain. Maybe ask for an option to tj3: $ tj3 --silent --spit-out-name-of-html-file foo.tjp Plan.html or $ tj3 --silent --symlink-report-to foo.html foo.tjp and you can go after foo.html - but of course this assumes that you have symlinks. Nick