* org-element.el doesn't support interpreting repeating range timestamps
@ 2013-01-10 12:11 Jonas Hörsch
2013-01-10 13:11 ` Nicolas Goaziou
0 siblings, 1 reply; 2+ messages in thread
From: Jonas Hörsch @ 2013-01-10 12:11 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 249 bytes --]
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:
[-- Attachment #2: mwe.org --]
[-- Type: text/x-org, Size: 865 bytes --]
* ❢ 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>
[-- Attachment #3: Type: text/plain, Size: 15 bytes --]
cheers,
jonas
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: org-element.el doesn't support interpreting repeating range timestamps
2013-01-10 12:11 org-element.el doesn't support interpreting repeating range timestamps Jonas Hörsch
@ 2013-01-10 13:11 ` Nicolas Goaziou
0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Goaziou @ 2013-01-10 13:11 UTC (permalink / raw)
To: Jonas Hörsch; +Cc: emacs-orgmode
Hello,
coroa@online.de (Jonas Hörsch) writes:
> 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).
Fixed. Thank you for the detailed report.
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-01-10 13:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-10 12:11 org-element.el doesn't support interpreting repeating range timestamps Jonas Hörsch
2013-01-10 13:11 ` Nicolas Goaziou
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).