emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* How do you get the LOGBOOK information from the current heading at point?
@ 2018-08-05 16:48 Cody Goodman
  2018-08-05 22:41 ` John Kitchin
  0 siblings, 1 reply; 4+ messages in thread
From: Cody Goodman @ 2018-08-05 16:48 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1302 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 1547 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-08-06  3:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-05 16:48 How do you get the LOGBOOK information from the current heading at point? Cody Goodman
2018-08-05 22:41 ` John Kitchin
2018-08-06  2:56   ` Cody Goodman
2018-08-06  3:10     ` John Kitchin

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).