emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Marcin Borkowski <mbork@mbork.pl>
To: Martin Kaffanke <martin@kaffanke.at>, emacs-orgmode@gnu.org
Subject: Re: (org-entry-get (point) "CLOCK") fails now
Date: Sun, 30 Aug 2015 22:18:13 +0200	[thread overview]
Message-ID: <87zj1834ze.fsf@mbork.pl> (raw)
In-Reply-To: <87mvx83ipc.fsf@nicolasgoaziou.fr>


On 2015-08-30, at 17:21, Nicolas Goaziou <mail@nicolasgoaziou.fr> wrote:

> Hello,
>
> Point should be on clocked out clock when `org-clock-out-hook' is run.
> You can probably use 
>
>   (org-element-property :duration (org-element-at-point))
>
> to extract last duration.

Thanks, that does the trick!

Still, I'm not sure how to handle the situation when the last line is
automatically removed due to

(setq org-clock-out-remove-zero-time-clocks t)

> Regards,

Best,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University

  reply	other threads:[~2015-08-30 20:18 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-30 11:41 (org-entry-get (point) "CLOCK") fails now Martin Kaffanke
2015-08-30 12:25 ` Nicolas Goaziou
2015-08-30 13:06   ` Marcin Borkowski
2015-08-30 15:21     ` Nicolas Goaziou
2015-08-30 20:18       ` Marcin Borkowski [this message]
2015-08-30 15:37   ` Martin Kaffanke
2015-08-30 18:59     ` Nicolas Goaziou

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87zj1834ze.fsf@mbork.pl \
    --to=mbork@mbork.pl \
    --cc=emacs-orgmode@gnu.org \
    --cc=martin@kaffanke.at \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).