From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thorsten Jolitz Subject: [BUG?] Additional warning period in timestamp affects parsing Date: Fri, 11 Oct 2013 13:16:46 +0200 Message-ID: <871u3sqcpt.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41517) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VUaiQ-00015c-Ce for emacs-orgmode@gnu.org; Fri, 11 Oct 2013 07:17:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VUaiK-0006uB-7i for emacs-orgmode@gnu.org; Fri, 11 Oct 2013 07:17:06 -0400 Received: from plane.gmane.org ([80.91.229.3]:41721) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VUaiK-0006u0-0U for emacs-orgmode@gnu.org; Fri, 11 Oct 2013 07:17:00 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1VUaiH-0005s9-VR for emacs-orgmode@gnu.org; Fri, 11 Oct 2013 13:16:57 +0200 Received: from e178062180.adsl.alicedsl.de ([85.178.62.180]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 11 Oct 2013 13:16:57 +0200 Received: from tjolitz by e178062180.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 11 Oct 2013 13:16:57 +0200 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 Hi List, with tmp.org #+begin_src org * A DEADLINE: <2013-10-11 Fr 06:33 +1m -3d> txt A * B DEADLINE: <2013-10-11 Fr 22:00 +1m> txt B #+end_src calling `org-element-parse-buffer' results in the following parse-tree #+begin_src emacs-lisp (org-data nil (headline (:raw-value "A" :begin 1 :end 55 :pre-blank 0 :hiddenp nil :contents-begin 5 :contents-end 54 :level 1 :priority nil :tags nil :todo-keyword nil :todo-type nil :post-blank 0 :footnote-section-p nil :archivedp nil :commentedp nil :quotedp nil :deadline (timestamp (:type active :raw-value "<2013-10-11 Fr 06:33 +1m -3d>" :year-start 2013 :month-start 10 :day-start 11 :hour-start 6 :minute-start 33 :year-end 2013 :month-end 10 :day-end 11 :hour-end 6 :minute-end 33 :begin 17 :end 46 :post-blank 0)) :CATEGORY "timestmp" :title (#("A" 0 1 (:parent #1))) :parent #0) (section (:begin 5 :end 55 :contents-begin 5 :contents-end 54 :post-blank 1 :parent #1) (planning (:closed nil :deadline (timestamp (:type active :raw-value "<2013-10-11 Fr 06:33 +1m -3d>" :year-start 2013 :month-start 10 :day-start 11 :hour-start 6 :minute-start 33 :year-end 2013 :month-end 10 :day-end 11 :hour-end 6 :minute-end 33 :begin 17 :end 46 :post-blank 0)) :scheduled nil :begin 5 :end 48 :post-blank 1 :parent #2)) (paragraph (:begin 48 :end 54 :contents-begin 48 :contents-end 54 :post-blank 0 :post-affiliated 48 :parent #2) #("txt A " 0 6 (:parent #3))))) (headline (:raw-value "B" :begin 55 :end 104 :pre-blank 0 :hiddenp nil :contents-begin 59 :contents-end 104 :level 1 :priority nil :tags nil :todo-keyword nil :todo-type nil :post-blank 0 :footnote-section-p nil :archivedp nil :commentedp nil :quotedp nil :deadline (timestamp (:type active :raw-value "<2013-10-11 Fr 22:00 +1m>" :year-start 2013 :month-start 10 :day-start 11 :hour-start 22 :minute-start 0 :year-end 2013 :month-end 10 :day-end 11 :hour-end 22 :minute-end 0 :begin 71 :end 96 :post-blank 0 :repeater-type cumulate :repeater-value 1 :repeater-unit month)) :CATEGORY nil :title (#("B" 0 1 (:parent #1))) :parent #0) (section (:begin 59 :end 104 :contents-begin 59 :contents-end 104 :post-blank 0 :parent #1) (planning (:closed nil :deadline (timestamp (:type active :raw-value "<2013-10-11 Fr 22:00 +1m>" :year-start 2013 :month-start 10 :day-start 11 :hour-start 22 :minute-start 0 :year-end 2013 :month-end 10 :day-end 11 :hour-end 22 :minute-end 0 :begin 71 :end 96 :post-blank 0 :repeater-type cumulate :repeater-value 1 :repeater-unit month)) :scheduled nil :begin 59 :end 98 :post-blank 1 :parent #2)) (paragraph (:begin 98 :end 104 :contents-begin 98 :contents-end 104 :post-blank 0 :post-affiliated 98 :parent #2) #("txt B " 0 6 (:parent #3)))))) #+end_src Note the two different deadline timestamps: #+begin_src emacs-lisp (:deadline (timestamp (:type active :raw-value "<2013-10-11 Fr 06:33 +1m -3d>" :year-start 2013 :month-start 10 :day-start 11 :hour-start 6 :minute-start 33 :year-end 2013 :month-end 10 :day-end 11 :hour-end 6 :minute-end 33 :begin 17 :end 46 :post-blank 0))) #+end_src and #+begin_src emacs-lisp (:deadline (timestamp (:type active :raw-value "<2013-10-11 Fr 22:00 +1m>" :year-start 2013 :month-start 10 :day-start 11 :hour-start 22 :minute-start 0 :year-end 2013 :month-end 10 :day-end 11 :hour-end 22 :minute-end 0 :begin 71 :end 96 :post-blank 0 :repeater-type cumulate :repeater-value 1 :repeater-unit month))) #+end_src It looks as if the combination of repeater *and* special warning period prevents the parsing of both of them. -- cheers, Thorsten