From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thorsten Jolitz Subject: [Exporter] How to extract timestamp from headline's title? Date: Fri, 15 Nov 2013 21:59:13 +0100 Message-ID: <87li0pqt3y.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56193) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VhQUH-0000cU-34 for emacs-orgmode@gnu.org; Fri, 15 Nov 2013 15:59:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VhQU9-0003e8-LY for emacs-orgmode@gnu.org; Fri, 15 Nov 2013 15:59:33 -0500 Received: from plane.gmane.org ([80.91.229.3]:48831) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VhQU9-0003dv-Eh for emacs-orgmode@gnu.org; Fri, 15 Nov 2013 15:59:25 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1VhQU8-0005zz-F1 for emacs-orgmode@gnu.org; Fri, 15 Nov 2013 21:59:24 +0100 Received: from e178189095.adsl.alicedsl.de ([85.178.189.95]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 15 Nov 2013 21:59:24 +0100 Received: from tjolitz by e178189095.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 15 Nov 2013 21:59:24 +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 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