emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] [Exporter] How to extract timestamp from headline's title?


From: Thorsten Jolitz
Subject: [O] [Exporter] How to extract timestamp from headline's title?
Date: Fri, 15 Nov 2013 21:59:13 +0100
User-agent: Gnus/5.130002 (Ma Gnus v0.2) Emacs/24.3 (gnu/linux)

Hi List, 

when writing an exporter backend, I wonder what is the canonical way to
extract the (optional) timestamp element from a headline's :title
attribute (which holds a secondary string)?

I could do something like this to extract the timestamp from the headline

#+begin_src emacs-lisp
  (let ((ttl (org-element-property :title headline)))
    (and (> (length ttl) 1)
         (car (last ttl))))
#+end_src

but I hope there is a more straight-forward and reliable way to do this?

-- 
cheers,
Thorsten




reply via email to

[Prev in Thread] Current Thread [Next in Thread]