From mboxrd@z Thu Jan 1 00:00:00 1970 From: Cody Goodman Subject: How do you get the LOGBOOK information from the current heading at point? Date: Sun, 5 Aug 2018 11:48:07 -0500 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000b9545f0572b2edec" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52260) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fmMCe-000189-5F for emacs-orgmode@gnu.org; Sun, 05 Aug 2018 12:48:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fmMCd-0005De-6c for emacs-orgmode@gnu.org; Sun, 05 Aug 2018 12:48:24 -0400 Received: from mail-qk0-x236.google.com ([2607:f8b0:400d:c09::236]:40500) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fmMCd-0005CR-0I for emacs-orgmode@gnu.org; Sun, 05 Aug 2018 12:48:23 -0400 Received: by mail-qk0-x236.google.com with SMTP id c126-v6so7320352qkd.7 for ; Sun, 05 Aug 2018 09:48:22 -0700 (PDT) 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" To: emacs-orgmode@gnu.org --000000000000b9545f0572b2edec Content-Type: text/plain; charset="UTF-8" Given a TODO that looks like this: *** DONE put into spacemacs file CLOSED: [2018-08-04 Sat 21:18] :LOGBOOK: CLOCK: [2018-08-04 Sat 21:16]--[2018-08-04 Sat 12:18] => 0:02 :END: What function will get me the parts in CLOCK: [2018-08-04 Sat 21:16]--[2018-08-04 Sat 12:18] => 0:02, preferably in plist format like the closed timestamp org-element-at-point gives back of: (timestamp (:type inactive :raw-value "[2018-08-04 Sat 21:18]" :year-start 2018 :month-start 8 :day-start 4 :hour-start 21 :minute-start 18 :year-end 2018 :month-end 8 :day-end 4 :hour-end 21 :minute-end 18 :begin 46 :end 68 :post-blank 0) Note org-element-at-point doesn't give back logbook information: (headline (:raw-value "put into spacemacs file" :begin 1 :end 157 :pre-blank 0 :contents-begin 34 :contents-end 157 :level 3 :priority nil :tags nil :todo-keyword #("DONE" 0 4 (fontified t face org-done)) :todo-type done :post-blank 0 :footnote-section-p nil :archivedp nil :commentedp nil :post-affiliated 1 :closed (timestamp (:type inactive :raw-value "[2018-08-04 Sat 21:18]" :year-start 2018 :month-start 8 :day-start 4 :hour-start 21 :minute-start 18 :year-end 2018 :month-end 8 :day-end 4 :hour-end 21 :minute-end 18 :begin 46 :end 68 :post-blank 0)) :title "put into spacemacs file")) Thanks, Cody --000000000000b9545f0572b2edec Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Given a TODO that looks like this:

*** DONE put int= o spacemacs file
=C2=A0=C2=A0=C2=A0 CLOSED: [2018-08-04 Sat 21:18]
= =C2=A0=C2=A0 :LOGBOOK:
=C2=A0=C2=A0=C2=A0 CLOCK: [2018-08-04 Sat 21:16]-= -[2018-08-04 Sat 12:18] =3D>=C2=A0 0:02
=C2=A0=C2=A0 :END:
=

What function will get me the parts in CLOCK: [2018-08-04 Sat 21:1= 6]--[2018-08-04 Sat 12:18] =3D>=C2=A0 0:02, preferably in plist format l= ike the closed timestamp org-element-at-point gives back of:

=
(timestamp (:type inactive :raw-value "[2018-08-04 Sat 21:18]"= =20 :year-start 2018 :month-start 8 :day-start 4 :hour-start 21=20 :minute-start 18 :year-end 2018 :month-end 8 :day-end 4 :hour-end 21=20 :minute-end 18 :begin 46 :end 68 :post-blank 0)

Note org-element-at-point doesn't give back logbook infor= mation:

(headline (:raw-value "put into spacemacs file" :b= egin 1 :end 157 :pre-blank 0 :contents-begin 34 :contents-end 157 :level 3 = :priority nil :tags nil :todo-keyword #("DONE" 0 4 (fontified t f= ace org-done)) :todo-type done :post-blank 0 :footnote-section-p nil :archi= vedp nil :commentedp nil :post-affiliated 1 :closed (timestamp (:type inact= ive :raw-value "[2018-08-04 Sat 21:18]" :year-start 2018 :month-s= tart 8 :day-start 4 :hour-start 21 :minute-start 18 :year-end 2018 :month-e= nd 8 :day-end 4 :hour-end 21 :minute-end 18 :begin 46 :end 68 :post-blank 0= )) :title "put into spacemacs file"))

Than= ks,

Cody

--000000000000b9545f0572b2edec--