From mboxrd@z Thu Jan 1 00:00:00 1970 From: coroa@online.de (Jonas =?utf-8?Q?H=C3=B6rsch?=) Subject: org-element.el doesn't support interpreting repeating range timestamps Date: Thu, 10 Jan 2013 13:11:14 +0100 Message-ID: <87txqpjl0d.fsf@online.de> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([208.118.235.92]:44198) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TtGyo-0001xF-S2 for emacs-orgmode@gnu.org; Thu, 10 Jan 2013 07:11:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TtGyn-0005lo-NM for emacs-orgmode@gnu.org; Thu, 10 Jan 2013 07:11:30 -0500 Received: from plane.gmane.org ([80.91.229.3]:39562) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TtGyn-0005lg-9M for emacs-orgmode@gnu.org; Thu, 10 Jan 2013 07:11:29 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1TtGyz-0002d2-26 for emacs-orgmode@gnu.org; Thu, 10 Jan 2013 13:11:41 +0100 Received: from dslb-178-012-232-103.pools.arcor-ip.net ([178.12.232.103]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 10 Jan 2013 13:11:41 +0100 Received: from coroa by dslb-178-012-232-103.pools.arcor-ip.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 10 Jan 2013 13:11:41 +0100 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 --=-=-= Content-Type: text/plain hej, i just noticed, that although org-element properly parses the repeating information of an active-range :type timestamp, it is not able to interpret it again (unless the :raw-value is still present, of course). minimal working example below: --=-=-= Content-Type: text/x-org; charset=utf-8 Content-Disposition: inline; filename=mwe.org Content-Transfer-Encoding: 8bit * ❢ Tagesschau <2013-01-15 Tue 20:00 +1d>--<2013-01-15 Tue 20:15 +1d> * Parsing #+name: timestamp #+begin_src emacs-lisp (org-element-put-property (org-element-put-property (org-element-map (org-element-parse-buffer) 'timestamp 'identity nil t) :parent nil) ; so we don't clutter the output uselessly :raw-value nil) ; with raw-value it works, trivially #+end_src #+RESULTS: timestamp | timestamp | (:type active-range :raw-value nil :year-start 2013 :month-start 1 :day-start 15 :hour-start 20 :minute-start 0 :year-end 2013 :month-end 1 :day-end 15 :hour-end 20 :minute-end 15 :begin 17 :end 71 :post-blank 0 :repeater-type cumulate :repeater-value 1 :repeater-unit day :parent nil) | * Interpreting #+begin_src emacs-lisp :var elem=timestamp (org-element-interpret-data elem) #+end_src #+RESULTS: : <2013-01-15 Tue 20:00>--<2013-01-15 Tue 20:15> --=-=-= Content-Type: text/plain cheers, jonas --=-=-=--