From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yann Hodique Subject: [PATCH v3 04/11] org-taskjuggler.el: Fix milestone definition Date: Thu, 16 Aug 2012 21:02:02 +0200 Message-ID: <1345143729-72705-5-git-send-email-yann.hodique@gmail.com> References: <1345057917-69300-1-git-send-email-yann.hodique@gmail.com> <1345143729-72705-1-git-send-email-yann.hodique@gmail.com> Return-path: Received: from eggs.gnu.org ([208.118.235.92]:48607) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T25LE-0006g3-8g for emacs-orgmode@gnu.org; Thu, 16 Aug 2012 15:02:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T25L9-0001pf-8k for emacs-orgmode@gnu.org; Thu, 16 Aug 2012 15:02:48 -0400 Received: from mail-wi0-f171.google.com ([209.85.212.171]:36790) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T25L9-0001pY-2n for emacs-orgmode@gnu.org; Thu, 16 Aug 2012 15:02:43 -0400 Received: by wibhq4 with SMTP id hq4so800054wib.12 for ; Thu, 16 Aug 2012 12:02:42 -0700 (PDT) In-Reply-To: <1345143729-72705-1-git-send-email-yann.hodique@gmail.com> 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: emacs-orgmode@gnu.org Cc: Yann Hodique * org-taskjuggler.el (org-taskjuggler-open-task): Task with end-only is also a milestone (deadline), task with length is not. --- lisp/org-taskjuggler.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lisp/org-taskjuggler.el b/lisp/org-taskjuggler.el index 93f0cc7..a18cdf8 100644 --- a/lisp/org-taskjuggler.el +++ b/lisp/org-taskjuggler.el @@ -689,8 +689,10 @@ org-mode priority string." (milestone (or (cdr (assoc "milestone" task)) (and (assoc "leaf-node" task) (not (or effort + (cdr (assoc "length" task)) (cdr (assoc "duration" task)) - (cdr (assoc "end" task)) + (and (cdr (assoc "start" task)) + (cdr (assoc "end" task))) (cdr (assoc "period" task))))))) (attributes org-export-taskjuggler-valid-task-attributes)) (insert -- 1.7.11.4