Re: [Orgmode] Re: [ANN] Exporter for taskjuggler
On Tue, Jun 8, 2010 at 2:51 PM, Christian Egli wrote: > Manish writes: > >> From where can I get the latest version of org-taskjuggler? > > I finally managed to push the taskjuggler exporter to the public repo. > It's located in the branch taskjuggler-export and should be ready to > be merged into the mainline. Thank you. I hope to try it soon with TJ3 on Windows. Regards -- Manish ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: [ANN] Exporter for taskjuggler
On 2010-06-08 14:30 +0100, Christian Egli wrote: >> In org-taskjuggler-close-maybe: >> org-taskjuggler.el:633:13:Warning: reference to free variable `old- >> level' >> org-taskjuggler.el:635:25:Warning: assignment to free variable `old- >> level' > > I just pushed a patch to the taskjuggler-export branch that should fix > this. I suppose old-level is a let-bound dynamic variable. I have found code giving a seemingly global variable name to such variables confusing at times. Would be better just make it global or insert a form at the beginning of the body of those functions like this: (declare (special dynvar1 dynvar2 ...)) I usually use the latter approach. Cheers. Leo -- CCL-USER> (if you fail to plan (plan to fail)) ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: [ANN] Exporter for taskjuggler
On Jun 8, 2010, at 4:03 PM, Christian Egli wrote: Christian Egli writes: In org-export-as-taskjuggler-and-open: org-taskjuggler.el:330:6:Warning: start-process-shell-command called with 4 arguments, but accepts only 3 This I cannot reproduce using the command command you gave. Is this maybe only a problem in newer Emacs versions? I'm using Emacs 23.1.1 Digging some more I found the following in http://www.gnu.org/software/emacs/NEWS.23.2: *** start-process-shell-command and start-file-process-shell-command now only take a single `command' argument. i.e. Emacs 23.2 has a different api for start-process-shell-command. I'm not quite sure how to deal with this. Should I add a wrapper function in org-compat (say "org-start-process-shell-command") that checks for emacs version > 23.2 and calls start-process-shell-command accordingly? One possibility is to check for versions. Better is maybe to do it like this (condition-case nil (org-no-warnings (start-process-shell-command with four different args)) (error (start-process-shell-command with three args)) Thill try one version, and if that given an error, try the other one. To get rid of the compiler warning, wrap the call into org-no-warnings. - Carsten Christian -- Christian Egli Swiss Library for the Blind, Visually Impaired and Print Disabled Grubenstrasse 12, CH-8045 Zürich, Switzerland ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: [ANN] Exporter for taskjuggler
T Helms writes: > How difficult would it be to add gap duration to the export? There is now support for gap duration in the newest version from git. Thanks -- Christian Egli Swiss Library for the Blind, Visually Impaired and Print Disabled Grubenstrasse 12, CH-8045 Zürich, Switzerland ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: [ANN] Exporter for taskjuggler
Christian Egli writes: >> In org-export-as-taskjuggler-and-open: >> org-taskjuggler.el:330:6:Warning: start-process-shell-command called >> with 4 >> arguments, but accepts only 3 > > This I cannot reproduce using the command command you gave. Is this > maybe only a problem in newer Emacs versions? I'm using Emacs 23.1.1 Digging some more I found the following in http://www.gnu.org/software/emacs/NEWS.23.2: > *** start-process-shell-command and start-file-process-shell-command > now only take a single `command' argument. i.e. Emacs 23.2 has a different api for start-process-shell-command. I'm not quite sure how to deal with this. Should I add a wrapper function in org-compat (say "org-start-process-shell-command") that checks for emacs version > 23.2 and calls start-process-shell-command accordingly? Christian -- Christian Egli Swiss Library for the Blind, Visually Impaired and Print Disabled Grubenstrasse 12, CH-8045 Zürich, Switzerland ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: [ANN] Exporter for taskjuggler
Carsten Dominik writes: > I have already merged and pushed your branch into the master, but please > make a patch that fixes these minor issues. Hey, that was fast. Thanks. > In org-taskjuggler-close-maybe: > org-taskjuggler.el:633:13:Warning: reference to free variable `old- > level' > org-taskjuggler.el:635:25:Warning: assignment to free variable `old- > level' I just pushed a patch to the taskjuggler-export branch that should fix this. > In org-export-as-taskjuggler-and-open: > org-taskjuggler.el:330:6:Warning: start-process-shell-command called > with 4 > arguments, but accepts only 3 This I cannot reproduce using the command command you gave. Is this maybe only a problem in newer Emacs versions? I'm using Emacs 23.1.1 Thanks Christian -- Christian Egli Swiss Library for the Blind, Visually Impaired and Print Disabled Grubenstrasse 12, CH-8045 Zürich, Switzerland ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: [ANN] Exporter for taskjuggler
Hi Christian, looks great, but I get a few compiler warnings: emacs -batch -q -no-site-file -eval "(setq load-path (cons (expand- file-name \"./lisp/\") (cons \"/usr/local/share/emacs/site-lisp\" load- path)))" -f batch-byte-compile lisp/org-taskjuggler.el In org-export-as-taskjuggler-and-open: org-taskjuggler.el:330:6:Warning: start-process-shell-command called with 4 arguments, but accepts only 3 In org-taskjuggler-close-maybe: org-taskjuggler.el:633:13:Warning: reference to free variable `old- level' org-taskjuggler.el:635:25:Warning: assignment to free variable `old- level' I have already merged and pushed your branch into the master, but please make a patch that fixes these minor issues. Thank you very much for this great contribution! - Carsten On Jun 8, 2010, at 11:21 AM, Christian Egli wrote: Manish writes: From where can I get the latest version of org-taskjuggler? I finally managed to push the taskjuggler exporter to the public repo. It's located in the branch taskjuggler-export and should be ready to be merged into the mainline. - All the FSF paper work has been completed - AFAIK all the feedback has been incorporated - e.g. frivolous handling of ID property - better error handling - added documentation to export section of org.texi - included taskjuggler export in the export dispatcher - added it to the Makefile I'm using this exporter almost on a daily bases, but I'm sure there are quite a few issues left. For example there is a warning when byte compiling about a reference to free variable `old-level'. I don't know if it is kosher to just quiet the compiler with a defvar. There are some other known issues mentioned in the TODO section in the code. However I think it is ready for wider consumption. Also there is an up-to-date tutorial on the usage of the taskjuggler exporter at http://orgmode.org/worg/org-tutorials/org-taskjuggler.php Thanks Christian -- Christian Egli Swiss Library for the Blind, Visually Impaired and Print Disabled Grubenstrasse 12, CH-8045 Zürich, Switzerland ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: [ANN] Exporter for taskjuggler
Manish writes: > From where can I get the latest version of org-taskjuggler? I finally managed to push the taskjuggler exporter to the public repo. It's located in the branch taskjuggler-export and should be ready to be merged into the mainline. - All the FSF paper work has been completed - AFAIK all the feedback has been incorporated - e.g. frivolous handling of ID property - better error handling - added documentation to export section of org.texi - included taskjuggler export in the export dispatcher - added it to the Makefile I'm using this exporter almost on a daily bases, but I'm sure there are quite a few issues left. For example there is a warning when byte compiling about a reference to free variable `old-level'. I don't know if it is kosher to just quiet the compiler with a defvar. There are some other known issues mentioned in the TODO section in the code. However I think it is ready for wider consumption. Also there is an up-to-date tutorial on the usage of the taskjuggler exporter at http://orgmode.org/worg/org-tutorials/org-taskjuggler.php Thanks Christian -- Christian Egli Swiss Library for the Blind, Visually Impaired and Print Disabled Grubenstrasse 12, CH-8045 Zürich, Switzerland ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: [ANN] Exporter for taskjuggler
Hi T Helms writes: > If you had a few more example sub-trees, it would help. If you have some org-mode files which describe a project including effort estimates (as properties) and maybe some textual dependency description I would gladly turn them into an example. Otherwise I can see if I can anonymize the project I'm working on. > How difficult would it be to add gap duration to the export? Ah, didn't think of that. Good question. Right now dependencies are generated on export based on either ORDERED, BLOCKER or depends properties. I guess if you had a property section as follows :PROPERTIES: :Effort: 03:00 :BLOCKER: posting_controller { gapduration 5d } :END: the part enclosed inside {} should not be interpreted as an additional dependency but instead as a gap duration specification. Should be doable. I'll add it to the list. Thanks Christian -- Christian Egli Swiss Library for the Blind, Visually Impaired and Print Disabled Grubenstrasse 12, CH-8045 Zürich, Switzerland ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode